Is there a way to add "Tel Number:" input field to create account page in Magento 1.7?
2 Answers
As pointed out by Marius the telephone number field is attached to the address and not the customer. For me the easiest thing to do here would be to add customer address as part of the registration process.
Though this might not fit into your business structure.
This can be achieve by adding the following layout snippet:
<customer_account_create>
<reference name="customer_form_register">
<action method="setShowAddressFields"><param>true</param></action>
</reference>
</customer_account_create>
-
Is there a way to only add telephone field in New Customer - Account Information section while admin is creating new customers and as well making it optional field. I know telephone field is present in New Address section but I am requiring it in Account Information section. Mar 7, 2017 at 20:41
-
I am a newbie to magento , Could you please help me with in which file to add this code , my only requirement is to move the Telephone field on Create new account page . Jul 3, 2017 at 12:14
The phone number is an attribute of the customer address object.
If you want it in the register page then you need to create it as a customer attribute.
Adding a customer attribute ... you can find that basically anywhere on the web.
Here are some links: