Page 1 of 1

Modifying MyOrder.aspx

Posted: Fri Jun 29, 2012 9:57 am
by vashts1980
I need to make some edits to the MyOrder.aspx page, however it doesn't appear that the content is actually generated on that page. What do I need to edit in order to make any necessary changes? The version is 7.0.7.

Re: Modifying MyOrder.aspx

Posted: Fri Jun 29, 2012 12:02 pm
by david-ebt
The main ConLib control is Conlib\MyOrderPage.ascx.

That control uses several child controls:

Conlib\OrderTotalSummary.ascx
Conlib\Breadcrumbs.ascx
Conlib\Utility\OrderItemDetail.ascx
Conlib\Utility\PayPalPayNowButton.ascx

That should give you access to everything on the MyOrder page.

Re: Modifying MyOrder.aspx

Posted: Fri Jun 29, 2012 12:42 pm
by vashts1980
Excellent, thank you. That's exactly what I was looking for.

Re: Modifying MyOrder.aspx

Posted: Thu Jul 12, 2012 11:52 am
by deverill
David, you've been around long enough you probably know this but I thought I'd throw it out if any new users see this question.

It is common practice to copy all ConLibs you change to a subfolder: ConLib/Custom and then making changes there. You have to go to the page that uses the ConLib as an Admin and at the bottom select Edit Page and point the scriptlet to Custom/conlibname.

This keeps your originals safe and lets you play without losing the way it was originally.

Re: Modifying MyOrder.aspx

Posted: Thu Jul 12, 2012 11:56 am
by vashts1980
That is not something I have done, however, I make a copy and edit that copy on a local machine and then upload it back into the ConLib folder after renaming the original. I also have a full backup copy of the original files. Just to be safe.

I don't know if anyone else takes my approach, but I agree with the intended result, of having the custom files while still preserving the unchanged originals.

Re: Modifying MyOrder.aspx

Posted: Thu Jul 12, 2012 12:27 pm
by david-ebt
Jim is right. Putting your customized ConLibs into the Custom folder is best practice. You can quickly identify your code from the original code and you always have the original code on the server.

One other benefit of putting your customized code into Custom is that when you perform an update from Able you don't have to worry about your code being overwritten. You will still need to compare the new version of any updated controls to your control to make sure you get any new features or bug fixes incorporated into your version. But you don't lose your customizations.