How to display approved transactions only in My Account
How to display approved transactions only in My Account
Is it possible to display the approved transactions only on /Members/MyAccount.aspx. Also where can I modify the number of transactions displayed on this page?
Re: How to display approved transactions only in My Account
Please explain you question a little bit.
Re: How to display approved transactions only in My Account
I'm refering to page that appears when you login as a registered user... the MyAccounts.aspx page. That page displays ALL transactions, Payment Authorized and Failed Transactions. I'd like to display only the successfully Payment Authorized transactions. Also, How do you change the number of orders listed on the page to more than 3.


Re: How to display approved transactions only in My Account
In the code find the following line of code and change the value according to your requirementAlso, How do you change the number of orders listed on the page to more than 3.
Code: Select all
private int maxOrders = 3;
Edit the MyAccountPage.ascx file and find the following codeI'm refering to page that appears when you login as a registered user... the MyAccounts.aspx page. That page displays ALL transactions, Payment Authorized and Failed Transactions. I'd like to display only the successfully Payment Authorized transactions.
Code: Select all
<asp:GridView ID="OrderGrid" runat="server" AutoGenerateColumns="False" ShowHeader="false" GridLines="none"
Width="100%" CellPadding="4" RowStyle-CssClass="altodd" AlternatingRowStyle-CssClass="alteven">
Code: Select all
<asp:GridView ID="OrderGrid" runat="server" AutoGenerateColumns="False" ShowHeader="false" GridLines="none"
Width="100%" CellPadding="4" RowStyle-CssClass="altodd" AlternatingRowStyle-CssClass="alteven" OnRowCreated="OrderGrid_RowCreated">
Code: Select all
protected void OrderGrid_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Order order = (Order)e.Row.DataItem;
e.Row.Visible = (order.PaymentStatus == OrderPaymentStatus.Paid);
}
}
Re: How to display approved transactions only in My Account
The solution worked perfectly! Thanks Mazhar.