How to add following below fields to the fronted customer registration form.
- 1.company
- 2.Address
- 3.street
- 4.city
- 5.state
- 6.country
- 7.zip code
- 8.phone no
- 9.federal tax id
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityHow to add following below fields to the fronted customer registration form.
To show address fields in registration form, Create the customer_account_create.xml
file on the path app/design/<Vendor>/<Theme>/Magento_Customer/layout
and add the below code:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer_form_register">
<action method="setShowAddressFields">
<argument name="show.address.fields" xsi:type="boolean">true</argument>
</action>
</referenceBlock>
</body>
</page>