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

Adding input fields to registration form

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-08-2008, 07:31 AM
 
mike@eternitywebdev.com mike@eternitywebdev.com is offline
 

Member
  
Join Date: Mar 2007
Posts: 12
 

Default Adding input fields to registration form

Hi All,

I am attempting to add some new input fields to my shopping cart registration form. I am setting up these new fields in a similar fashion to the "Shipping address different than billding address" area where you click the check box to reveal the new input fields. I have been successful in creating the form, it looks great. The problem is it's not inserting the data from the new fields.

Here's what I do know:
My new template is called workshop_registration.tpl and is fashioned in a similar manner to register_shipping_address.tpl, both in the skin1/main folder (both called by customer/main/register.tpl)

I've added all the new fields to the main/orders_export.tpl folder.

I've edited my modules/fast_lane_checkout/customer_details_html.tpl to show the new data on the checkotu screen underneath the address information.

I've made sure the xcart_customers table has these new input fields in it. I also found an array called default_user_profile_fields in the init.php file, so I added the new fields to this array. I've checked my syntax in this file as well as my new template file and the customer_details_html.tpl file (where I am trying to get the new data to appear) over and over again and I see nothing wrong.

**UPDATE**

I found more calls to the b_state, s_state etc. variables from the registration form in include/register.php, include/import_orders.php, and include/import_users. I added the names of my new input boxes everywhere it seemed pertinent to do so, placing them right after the s_ variable names as I have been in all the files. I did my best not to bother with the areas of code that related to how the billing/shipping addresses work together since my new input fields are totally separate and do not need to work with these fields in any way. It is STILL not picking up any data when I fill out my form. Any Help would be Great!!!

Thanks!!
__________________
Mike
V.4.1.11
V 4.2.2
Reply With Quote
  #2  
Old 08-11-2008, 05:39 AM
 
mike@eternitywebdev.com mike@eternitywebdev.com is offline
 

Member
  
Join Date: Mar 2007
Posts: 12
 

Default Re: Adding input fields to registration form

Anyone with any info on how to add a few new input boxes to the standard shopping cart registration form would be much appreciated!
__________________
Mike
V.4.1.11
V 4.2.2
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 03:19 PM.

   

 
X-Cart forums © 2001-2020