Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Move fields around in One Page checkout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-30-2011, 10:11 AM
  torbenbendixen's Avatar 
torbenbendixen torbenbendixen is offline
 

Advanced Member
  
Join Date: Oct 2010
Location: Denmark
Posts: 60
 

Default 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.
__________________
X-Cart 4.5.5
Reply With Quote
  #2  
Old 12-30-2011, 11:10 AM
  CottonAge.com's Avatar 
CottonAge.com CottonAge.com is offline
 

eXpert
  
Join Date: Jan 2008
Location: Orange County, California
Posts: 244
 

Default 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
__________________
CottonAge.com - v4.4.4 - Gold
Mirko.com - v4.1.12 - Gold

We sell Bathrobes, Slippers, Towels & more at wholesale prices...
Reply With Quote
  #3  
Old 12-30-2011, 11:11 AM
  torbenbendixen's Avatar 
torbenbendixen torbenbendixen is offline
 

Advanced Member
  
Join Date: Oct 2010
Location: Denmark
Posts: 60
 

Default 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.
__________________
X-Cart 4.5.5
Reply With Quote
  #4  
Old 12-30-2011, 11:26 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 12-30-2011, 11:32 AM
  torbenbendixen's Avatar 
torbenbendixen torbenbendixen is offline
 

Advanced Member
  
Join Date: Oct 2010
Location: Denmark
Posts: 60
 

Default 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.
__________________
X-Cart 4.5.5
Reply With Quote
  #6  
Old 12-30-2011, 11:37 AM
  CottonAge.com's Avatar 
CottonAge.com CottonAge.com is offline
 

eXpert
  
Join Date: Jan 2008
Location: Orange County, California
Posts: 244
 

Default Re: Move fields around in One Page checkout

look in common_files/modules/One_Page_Checkout/profile I'm assuming address_fields.tpl
__________________
CottonAge.com - v4.4.4 - Gold
Mirko.com - v4.1.12 - Gold

We sell Bathrobes, Slippers, Towels & more at wholesale prices...
Reply With Quote
  #7  
Old 12-30-2011, 11:51 AM
  torbenbendixen's Avatar 
torbenbendixen torbenbendixen is offline
 

Advanced Member
  
Join Date: Oct 2010
Location: Denmark
Posts: 60
 

Default 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.
__________________
X-Cart 4.5.5
Reply With Quote
  #8  
Old 12-30-2011, 12:00 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 12-30-2011, 12:08 PM
  torbenbendixen's Avatar 
torbenbendixen torbenbendixen is offline
 

Advanced Member
  
Join Date: Oct 2010
Location: Denmark
Posts: 60
 

Default 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
__________________
X-Cart 4.5.5
Reply With Quote
  #10  
Old 01-13-2012, 09:01 AM
  torbenbendixen's Avatar 
torbenbendixen torbenbendixen is offline
 

Advanced Member
  
Join Date: Oct 2010
Location: Denmark
Posts: 60
 

Default 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!!
__________________
X-Cart 4.5.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:11 PM.

   

 
X-Cart forums © 2001-2020