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)
-   -   adding registration fields (https://forum.x-cart.com/showthread.php?t=35192)

mangoboom 11-05-2007 08:00 AM

adding registration fields
 
Hi

i want to a "company name" field to the shipping section of the registration form, does anyone know how to do this?

thanks

balinor 11-05-2007 10:04 AM

Re: adding registration fields
 
General Settings/User Profiles options. Add fields using the boxes at the bottom.

mangoboom 11-06-2007 01:23 AM

Re: adding registration fields
 
Hi

thanks for the reply, is there a way to get the addition field near the top of their respective section? i set the position of the field as 1 but it is appearing below all the other default fields.

my additional field is Company Name, so this needs to appear before "Address."


thanks

balinor 11-06-2007 04:03 AM

Re: adding registration fields
 
Correct, if you have a look at skin1/main/register_shipping.tpl, you'll see that the 'additional' fields include is at the bottom. Simply move it to where you want the field in the template.

mangoboom 11-08-2007 02:06 AM

Re: adding registration fields
 
hi

i dont have a register_shipping.tpl file, i only have register_shipping_address.tpl and register_additional_info.tpl. i have looked in both files and it is not clear what code i must move?

at the bottom of register_shipping_address.tpl there is an includes statement :
{include file="main/register_additional_info.tpl" section="S"}, does this mean the addtional fields are pulled in from another file (register_additional_info.tpl)? if so do i just move the includes statement?

Please could you advise me further.

thanks

balinor 11-08-2007 03:52 AM

Re: adding registration fields
 
It is register_shipping_address.tpl. You move the include to where you want it to appear in the code.

mangoboom 11-08-2007 05:03 AM

Re: adding registration fields
 
Hi

thanks for the reply, i had to update the individual files, i have added company name to the registration form, this appears in the billing and shipping details. currently if the billing and shipping details then the user does not have to enter them twice, he/she just has to fill out the billing details. the additional field (Company Name) is not being copied over to the shipping details, do you know how to do this?

thanks

balinor 11-08-2007 05:06 AM

Re: adding registration fields
 
The additional fields will not be copied over, that only works for the default fields I'm afraid.

mangoboom 11-08-2007 05:11 AM

Re: adding registration fields
 
so just to confirm there is no way of doing this (without x cart support)?

thanks for all your help

balinor 11-08-2007 05:13 AM

Re: adding registration fields
 
So you are looking to add a 'company' field to the shipping address that will be copied from the billing address?

imexhouse 02-21-2008 12:38 PM

Re: adding registration fields
 
Balinor,

Have you pursued this further?
What would you say needs to be done to have the billing address company copied over to shipping address company field?

Thanks,

Jack

balinor 02-21-2008 12:40 PM

Re: adding registration fields
 
This is in regards to a custom field, the billing automatically copies to the shipping if shipping is left empty, but custom fields don't. You would need to write the custom field into the php files.

imexhouse 02-21-2008 12:49 PM

Re: adding registration fields
 
Thanks.


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

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