Вопрос

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

enter image description here

Это было полезно?

Решение

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!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с magento.stackexchange
scroll top