| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding input fields to registration form | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|