Re: Extra Fields for Customer Sign Up (Create Account) Page
I've also tried to insert the other two values into the database directly using the following command.
$sql = "insert into " . TABLE_CUSTOMERS . " (extrafield2, extrafield3) values (:value1:, :value2:) where customers_id = :customersID";
$sql = $db->bindVars($sql, ':value1:', $extrafield2, 'string');
$sql = $db->bindVars($sql, ':value2:', $extrafield3, 'string');
$result = $db->Execute($sql);
I'm starting to think that the values are not being posted with the form submission. I've checked the field name and ids and they all match correctly.
Re: Extra Fields for Customer Sign Up (Create Account) Page
Only my first extrafield shows up in the customer edit page of the admin area. I can add the other two extrafield to the admin files as well.
Re: Extra Fields for Customer Sign Up (Create Account) Page
try doing that, and see if you can get the backend updates working. Let me know what happens!
Re: Extra Fields for Customer Sign Up (Create Account) Page
It's now updating all three fields correctly from the customer edit page. Still no luck on the account edit page.
Re: Extra Fields for Customer Sign Up (Create Account) Page
I got it working. I honestly do not know how but I thank God. I prayed and placed back online my original header_php.php file and it updated the fields as expected. Thanks for your help and this great module JT.
Re: Extra Fields for Customer Sign Up (Create Account) Page
Glad it's working for you! Sometimes strange things happen and re-uploading is what it takes.
Re: Extra Fields for Customer Sign Up (Create Account) Page
Quote:
Originally Posted by
jackie.taferner
@soniccc
haven't tried it, but in theory this should work. find this file: /includes/classes/order.php
and using 'firstname' as an example field, search through the document and every instance of 'firstname', copy and paste that line, then add your variable.
@jahmar
Sounds like there may be something missing in /includes/modules/pages/account_edit/header_php.php
Do a search for 'extrafield' and make sure there is an instance for extrafield2 and extrafield3 in every single place that the other one is.
Ok. I'll try that. Thanks!
Re: Extra Fields for Customer Sign Up (Create Account) Page
Can we add more than one extra fields using this mod?
I want to add 4 fields to registration form. Does this mod work for me?
Re: Extra Fields for Customer Sign Up (Create Account) Page
Thank you for this awesome plugin, it works perfectly! :D
Is it possible to make the field a dropdown with options, say for different sizes?
I tried the idea of using existing code but the only code I found was for the countries, which seems to get the information from somewhere else rather than manually entering the countries.
Thanks!
Re: Extra Fields for Customer Sign Up (Create Account) Page
@ntestinfo11, yes you can add more fields by following the instructions in readme.txt file
@nakashima, I am unsure why you might want sizes on the sign-up page. Perhaps you are using the sign up in a different way than intended, and there could be a better solution for your needs. Let me know what you're trying to accomplish.