HomeHome Product Discus... Product Discus...SmithCartSmithCartSelect Invoice - My AccountSelect Invoice - My Account
Previous
 
Next
New Post
3/2/2011 12:43 PM
 

When we select the Option "Invoice" within the My Account area it opens up a new window.

This would cause problems because the customer would now have two windows open which means cart quantities and other things could get confusing for the customer.

Is there anyway that the invoice option just loads information within the current page. I did not see an option for this under settings for the My Account Page.

Smith cart 4.0

DotNetNuke 5.6.1

 
New Post
3/2/2011 9:54 PM
 

You can edit the .ascx file to make the invoices open in the same windows/tab. To do this, open MyAccountManageOrders.ascx in the Smith.MyAccount module, and find(Lines 68-71):


<ItemTemplate>
<asp:HyperLink ID="hlInvoice" runat="server" NavigateUrl='<%#GetEditUrl(DataBinder.Eval(Container.DataItem,"OrderID")) %>'
Target="_blank"><%= Localization.GetString("Invoice.Text", LocalResourceFile)%></asp:HyperLink>
</ItemTemplate>


Make the following changes, Highlighted in yellow this to (Change Target="_Blank" to Target="_Self"):

<ItemTemplate>
<asp:HyperLink ID="hlInvoice" runat="server" NavigateUrl='<%#GetEditUrl(DataBinder.Eval(Container.DataItem,"OrderID")) %>'
Target="_self"><%= Localization.GetString("Invoice.Text", LocalResourceFile)%></asp:HyperLink>
</ItemTemplate>


Thanks,

Christian

 
New Post
3/3/2011 6:09 AM
 

I have made the selected changes but when I hit the back button "btn_back" on the Invoice Ascx page it states that it will close the window and it does.

I believe that this might be in the codebehind so I don't think I could change. Ideally we would want it take the customer back to the MyAccount Page and close the browser.

 
New Post
3/3/2011 11:16 AM
Accepted Answer 

Your right, I had forgotten that when you click the back button, the cart is programmed to close the window when you click the back button, which is not something that you can change. The fact that the back button closes the window should fix your concern of having diffrent carts/ammounts tho.

Thanks,

Christian

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartSelect Invoice - My AccountSelect Invoice - My Account