| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Add fields to Shipping Address | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I need to add a: "First Name & Last Name" text field to my shipping address at my register page.
I looked in my general setting> profile options but in my Shipping Address, I see that the first name and last name fields are not displayed. At the bottom of the page their is an Additional fields area that allows me to add text areas but I am alittle confused on what you type in; what is the Variants for Select box type? Also, when I look at my "register_shipping_address.tpl" file i noticed that their is a: (code located below) {$lng.lbl_first_name}: {$lng.lbl_last_name}: So it looks to my like the first name and last name fields are pre built-in as default but I my admin setting I cannot find nod to select it to display. Currently I have the following fields display in my register: Address1 Address2 City State Zip I need: First Name Last Name Address1 Address2 City State Zip Code:
__________________
x-cart 4.0.16v linux server |
|||||||
#2
|
|||||||
|
|||||||
![]() Please post your EXACT version in your signature. (i.e. 4.0.17). Can't help you without it.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() my version is 4.0.16
__________________
x-cart 4.0.16v linux server |
|||||||
#4
|
|||||||
|
|||||||
![]() Can someone tell me how to add a (First Name & Last Name) fields to my shipping address.
Also, in my register_shipping_address.tpl file I noticed that their is a code that does call the a shipping addres (first name & last name). Does someone know how to do this? (4.0.16v)
__________________
x-cart 4.0.16v linux server |
|||||||
#5
|
|||||||
|
|||||||
![]() Just remove the surrounding {if} statement on the first and last name fields:
{if $default_fields.firstname.avail eq 'Y'} {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() I tried removing the if tags like you mentioned but once I did that I recieved a smarty error.
__________________
x-cart 4.0.16v linux server |
|||||||
#7
|
|||||||
|
|||||||
![]() You need to make sure to remove the correct tags so you don't break an {if} statement. Both the opening and closing tags need to be removed or commented out.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
![]() I commented out and removed all the if tags and when i refreshed the page, it loaded but the first name and last name fields dont show.
In my admin > user profile options It looks like I can add fields, what do you type in the varients for select box? Ex. Variants for Select box type (use ';' symbol as variants delimiter): a
__________________
x-cart 4.0.16v linux server |
|||||||
#9
|
|||||||
|
|||||||
![]() Don't put anything in the variants box unless you want it to be a drop-down list.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#10
|
|||||||
|
|||||||
![]() Once you add a field to the shipping address "First Name" and "Last Name", does someone know what the language variable name is so I can call those fields in my invoice and etc?
Ex: $lng.txt... $lng.lbl...
__________________
x-cart 4.0.16v linux server |
|||||||
|
|||
X-Cart forums © 2001-2020
|