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

Help with modifying register page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-14-2007, 10:56 AM
 
pixellogo pixellogo is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 54
 

Default Help with modifying register page

Hello Everybody!

I need a bit of help with modifying the register page on X-Cart version 4.1.5.

Basically, what I require to do is to have the "Country" field be displayed above the "States" field (it's the opposite now).

I would greatly appreciate any information as to which template to edit and how.

Also, is there any way to have the country field and state field to be blank instead of showing our default country? I ask this because some clients are confused and they think that we only do business in Canada... They don't bother to check the drop down list.

Thank you very much for all help!

Cheers!
__________________
Logo Design By Pixellogo
X-Cart 4.0.15
Reply With Quote
  #2  
Old 03-14-2007, 10:58 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Help with modifying register page

Moving to Template Editing
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-14-2007, 11:06 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Help with modifying register page

skin1/main/register_shipping_address.tpl
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #4  
Old 03-14-2007, 11:11 AM
 
pixellogo pixellogo is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 54
 

Default Re: Help with modifying register page

Hello Inebriate!

Thanks for directing me to that template mate! Would you be able to tell me which lines I should move? Completely new to PHP

Thanks!
__________________
Logo Design By Pixellogo
X-Cart 4.0.15
Reply With Quote
  #5  
Old 03-14-2007, 11:28 AM
 
pixellogo pixellogo is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 54
 

Default Re: Help with modifying register page

Mates, I found the solution for this mod.

Thanks to Inebriate for pointing me in the right direction

Mates, to do this mod, we actually have to modify two templates for version 4.1.5:
1) /main/register_billing_address.tpl
2) /main/register_shipping_address.tpl

In both cases, simply locate the following respectively:

{if $default_fields.b_state.avail eq 'Y'} ...... {/if}
{if $default_fields.s_state.avail eq 'Y'} ...... {/if}

And place it after:

{if $default_fields.b_country.avail eq 'Y'} ..... {/if}
{if $default_fields.s_country.avail eq 'Y'} ..... {/if}

(again respectively).

Cheers!
__________________
Logo Design By Pixellogo
X-Cart 4.0.15
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 12:32 PM.

   

 
X-Cart forums © 2001-2020