X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Move fields around in One Page checkout (https://forum.x-cart.com/showthread.php?t=62175)

torbenbendixen 12-30-2011 10:11 AM

Move fields around in One Page checkout
 
I can't seem to find out what file to change, in order to move the zip code field in the one page checkout.

Anybody knows?

Thank you.

CottonAge.com 12-30-2011 11:10 AM

Re: Move fields around in One Page checkout
 
Not sure what you are trying to do but if you want to remove the Zip code field then in your XC admin go to General Setting > User Profile

torbenbendixen 12-30-2011 11:11 AM

Re: Move fields around in One Page checkout
 
I don want to REMOVE, but I want to MOVE.
In Denmark you put in the zip code before you put in the city, so I want the fiels to be in the right order.

cflsystems 12-30-2011 11:26 AM

Re: Move fields around in One Page checkout
 
Use the webmaster mode to find the correct file. Just so you know - XC uses a loop to output the fields (you will not see individual fields listed in there) so you will have to modify the template and the foreach in that template for your specific needs

torbenbendixen 12-30-2011 11:32 AM

Re: Move fields around in One Page checkout
 
I have tried webmaster tools, but I don't see how I can what file is used??

I am aware that I have to modify the template, I just need to know what template to modify.

CottonAge.com 12-30-2011 11:37 AM

Re: Move fields around in One Page checkout
 
look in common_files/modules/One_Page_Checkout/profile I'm assuming address_fields.tpl

torbenbendixen 12-30-2011 11:51 AM

Re: Move fields around in One Page checkout
 
I have tried all files in that directory, but can't seem to find where it is.
Maybe it is the file address_fields.tpl but I can't figure out how to move the field in that file.

cflsystems 12-30-2011 12:00 PM

Re: Move fields around in One Page checkout
 
Like I said
Quote:

Just so you know - XC uses a loop to output the fields (you will not see individual fields listed in there) so you will have to modify the template and the foreach in that template for your specific needs
you need to use an if statement(s) to be able to change the way fields are outputted. Another possible way of doing it is if you change the order of the fields in init.php

torbenbendixen 12-30-2011 12:08 PM

Re: Move fields around in One Page checkout
 
Thank you. I tried to change the order in init.php, but nothing.
The other method is to complicated for me to figure out :-)

torbenbendixen 01-13-2012 09:01 AM

Re: Move fields around in One Page checkout
 
Actually changing the init.php file worked.
I just needed to execute the following SQL query to the database:
update xcart_config set value = "" where name = 'address_book_fields';

So thank you very much for your help!!


All times are GMT -8. The time now is 05:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.