| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Changing order_info.tpl to reduce scrolling | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Changing order_info.tpl to reduce scrolling
Code is working in 4.0.15
This Christmas season I got sick of scrolling down, down, down to enter tracking numbers and submit changes. So, I changed the main/order_info.tpl to get rid of some of the long list display that x-cart so loves. Here's a tscreenshot of the results: http://www.heirloomwoodentoys.com/files/images/order_info.jpg In short, I simply put the order info into a tabular form rather than the list, and got the billing and shipping addresses into an Americanized format. The later process got rid of a lot of {if} {/if} statements that allowed you to turn on and off the various elements of the address. eg. first name, last name, etc. Basically, if you use this, you will be stuck with displaying all of the elements shown here (but including address line 2 which wasn't filled in here). I figured that this would not be much of an issue for most, as most of these elements are basic information. This was all done fairly quickly, so there is lots of room for improvement, but it should make a great starting point if you want to reduce your scrolling through the order info.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Changing order_info.tpl to reduce scrolling
heres the code:
main/order_info.tpl Code:
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Changing order_info.tpl to reduce scrolling
Here's the rest of the code. Simply put this right under the end of the last section. The complete code is too long for the forum to handle in one post. Sorry.
Code:
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|