| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Change order of address fields | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Change order of address fields
Hi all,
We currently have X-Cart 5 installed on four of our websites, each one using a different theme. On one of the themes, when looking at the Checkout page, the Email address field is at the top of the list whereas on the other three themes it is at the bottom. (see attached images) I would prefer to have the email field at the top of the list for all of the themes, but as it is not in the list of fields for Cart & Checkout > Address Fields I'm not sure how to do this. I've tried to find the differences in the files between the themes but haven't been able to. Can anyone point me in the right direction here? Thanks as ever for your help.
__________________
Four sites using X-Cart 5.4.x.x. Oh the joy |
|||||||
#2
|
|||||||
|
|||||||
Re: Change order of address fields
Hi, a quick glance at the codes suggest that the output comes from
../../../skins/customer/checkout/steps/shipping/parts/address.shipping.twig which looks like Code:
Unfortunately I have been unable to figure out where the widget list checkout.shipping.address is defined. But with a little luck, you an maybe get away just by making sure the array this.getAddressSchemaFields() (which is defined in the view class View/Checkout/AAddressBlock.php) isn't sorted in the theme that outputs address fields in a wrong order.
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
#3
|
|||||||
|
|||||||
Re: Change order of address fields
Hi,
Thanks for your reply. I haven't been able to find any code differences between the themes that do this how I want and the ones that don't, so I'm a bit lost. I haven't really got my head round the way that 5 does things compared to 4, where I think I would have been able to achieve this relatively easily. Guess I'll just have to live with it for now, until I manage to get some time to really learn 5 properly.
__________________
Four sites using X-Cart 5.4.x.x. Oh the joy |
|||||||
#4
|
|||||||
|
|||||||
Re: Change order of address fields
It looks like a design bug that doesn't affect performance.
__________________
X-Cart Business 5.3.6.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|