I am developing a website with magento ver-1.6. I am try to create new fields for customer registration, but it not created. I followed the same way what we followed in ver-1.5.
Any variation in create customer fields in 1.6?
I am developing a website with magento ver-1.6. I am try to create new fields for customer registration, but it not created. I followed the same way what we followed in ver-1.5.
Any variation in create customer fields in 1.6?
I don't know what you tried so I'm just going to list all the steps needed to add a new schooL customer attribute to the Magento 1.6.1 registration form.
Create a module preferably, or place similiar code to this in some .phtml file and run it once. If you're doing this proper and creating a module, put code like this into the mysql_install file:
In your module config.xml file. Note that the name of my module is Excellence_Profile.
Here we will add our attribute, to the customer registration form. In version 1.6.0(+) the phtml file used is
persistance/customer/register.phtml
and in version 1.6.0(-) the phtml file used iscustomer/form/register.phtml
So we need to open the phtml file, based on magento version and add this code in the tag.For magento 1.4.2(+) that is all that is required for the registration step. If you create a user from here, you should see the school text field in admin. For magento 1.4.1(-), we need to do another thing open the your modules config.xml file and add:
Once, user has created his account in the MyAccount->Account Information section he should be able to edit the school field as well. For this open the phtml file
customer/form/edit.phtml
and put in the code in the :A registration form also shows up at the checkout page in magento. To add you field here, you need to edit
checkout/onepage/billing.phtml
for magento version 1.6(-) andpersistant/checkout/onepage/billing.phtml
for magento version 1.6(+) file and then find the code:inside this if condition add your field
Next open your module config.xml or any other config.xml file, add the following lines:
Next we need to make some changes in the quote table i.e sales_flat_quote table in magento. If you have a module then create an upgrade version of your sql file and put in this code:
After doing this make sure to clear you magento cache, specifically “Flush Magento Cache” and “Flush Cache Storage”. Now when you place order, the customer is created with the correct school attribute.
I had problems to save the new fields in the checkout_register form.
I had to extend the global->fieldsets node: