I added some custom attributes and i
set
– show_address_fields -> true in the layout for the reference block customer_form_register but i get this error when trying to create a customer. The address is not added but the customer is added so what's the problem. Any help ,please ?
Delete Operation Forbidden for Current Area in Magento 2
magento2
Related Topic
- Magento – Magento 2 create custom block and phtml in Magento_Customer module
- Magento – magento 2 adding tab in custom module edit section
- Magento – Additional custom field in billing address for virtual products Magento 2.1
- Magento – “Delete operation is forbidden for current area” error while create customer in Magento 2
- Magento 2 – Create Widget Using Install Script
Best Answer
In your construct function add the Registry class like -
And then in your construct function add like -