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

Add fields to Shipping Address

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 12-23-2005, 06:46 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

I added the FIrst Name and Last Name fields to the Shipping Address you you mentioned bailor and it worked.

The problem is that by default the s_firstname and s_lastname fields are filled out by the values of the lastname and the firstname fields. And i need the s_firstname & s_lastname to use their own fields. Can someone tell me how to change those in my register_shipping_address.tpl file.

Code:
code: {if $default_fields.firstname.avail eq 'Y'} <TR> <TD align="left"><font class="SubHeader2">{$lng.lbl_first_name}:</font></TD> <TD>{if $default_fields.firstname.required eq 'Y' && $is_s_fields}<FONT class="Star"></FONT>{else}{/if}</TD> <TD nowrap align="right"> <INPUT type="text" name="s_firstname" size="32" maxlength="32" value="{$userinfo.s_firstname}" class="SubHeader4">[img]{$ImagesDir}/spacer.gif[/img] {if $reg_error ne "" and $userinfo.s_firstname eq "" && $default_fields.firstname.required eq 'Y' && $is_s_fields}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> {/if} {if $default_fields.lastname.avail eq 'Y'} <TR> <TD align="left"><font class="SubHeader2">{$lng.lbl_last_name}:</font></TD> <TD>{if $default_fields.lastname.required eq 'Y' && $is_s_fields}<FONT class="Star"></FONT>{else}{/if}</TD> <TD nowrap align="right"> <INPUT type="text" name="s_lastname" size="32" maxlength="32" value="{$userinfo.s_lastname}" class="SubHeader4">[img]{$ImagesDir}/spacer.gif[/img] {if $reg_error ne "" and $userinfo.s_lastname eq "" && $default_fields.lastname.required eq 'Y' && $is_s_fields}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> {/if}
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #12  
Old 01-09-2006, 05:17 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default

Quote:
Originally Posted by mmoskva
I added the FIrst Name and Last Name fields to the Shipping Address you you mentioned bailor and it worked.

The problem is that by default the s_firstname and s_lastname fields are filled out by the values of the lastname and the firstname fields.

Do you have some sort of 'easy checkout' mod installed? The default the s_firstname and s_lastname fields are filled out by the customer unless the template has been modified.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #13  
Old 01-09-2006, 06:34 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default

Take a look at this mod to get a seperate billing name. I have applied it to 4.0.14 and it works great.

http://forum.x-cart.com/viewtopic.php?t=10479
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
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 02:38 AM.

   

 
X-Cart forums © 2001-2020