0

I don't remember where is option in backend how to hide fields with address information during reg new account.

enter image description here

1

1 Answer 1

1

You can use below code for hide address information from customer registration form.

Create file path in your theme and use this code:

app/design/frontend/Your_VendorName/Your_ThemeName/Magento_Customer/layout/customer_account_create.xml

<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">
            <arguments>
                <argument name="show_address_fields" xsi:type="boolean">false</argument>
            </arguments>
        </referenceBlock>
    </body>
</page>

Let me know if any query.

Hope it help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.