In my magento 2 /customer/account page i have added a button to give the customers the option to change their Email. There is already a button to change password. When i click on “Change Email” button, the page redirects to /customer/account/edit/changeemail/1.
The Magento Customer module does not have a block class method “getChangeEmail” to set the changeEmail in the customer session to true when the change Email button is clicked in the customer/account page. We have a module in vendor/labelident/module-plugin-magento-customer and i have tried to extend MagentoCustomerBlockFormEdit class but it does not seem to work.
Has someone already extended the Customer module class methods?
I really appreciate some guidance.
Thank you in advance.