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)
-   -   Add fields to Shipping Address (https://forum.x-cart.com/showthread.php?t=18752)

mmoskva 12-23-2005 06:46 AM

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}


JWait 01-09-2006 05:17 AM

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.

geckoday 01-09-2006 06:34 AM

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


All times are GMT -8. The time now is 10:28 AM.

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