Frontend:
- Add a new link to menu in the customer account
- When opening the link, show a form with one field "Status" and button "Save"
- when a customer fills in the status and presses the save button, the status gets saved
- The status must be displayed in the top right corner. Right after the welcome message.
- It must work correctly with all the caches enabled
Backend:
- The saved status must be displayed in admin in customer edit page.
- Admin can change the status
- Magento 2.4.6
- PHP 8.0+
Run these commands in your root magento directory
composer config repositories.dsitovs/magento2-customer-attribute git [email protected]:dsitovs/magento2-customer-attribute.git
composer require dsitovs/magento2-customer-attribute
bin/magento setup:upgrade
- Create
TestExample
directory inapp/code
cd app/code
mkdir TestExample
cd TestExample
mkdir CustomerAttribute
- Extract this repo contents inside
CustomerAttribute
directory