To request address details during registration, create the file customer_account_create.xml im Verzeichnis app/design/YourVendor/YourTheme/Magento_Customer/layout and insert the following content:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?xml version="1.0"?> <!-- /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="customer_form_register"> <arguments> <argument name="show_address_fields" xsi:type="string">1</argument> </arguments> </referenceBlock> </body> </page> |
Clear the cache afterwards. Address fields should then appear when registering a new account.
Showing address fields during registration
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.