I have an issue on magento 2 customer account edit form.
I think generally magento 2 customer account edit form was loaded from vendor/magento/module-customer/view/frontend/templates/form/edit.phtml
My create account templates also loaded from vendor/magento/module-customer/view/frontend/templates/form/register.phtml
For create account template shows the exact path and from there also my template was loading.
But on customer account edit template, I have faced one issue,that was I have enabled the template path hints and checked the template path for the customer account edit form, it shows the below path:
vendor/amzn/amazon-pay-module/view/frontend/templates/form/edit.phtml
I want to customize the customer account edit form, so I have tried to override the core customer module edit.phtml template (vendor/magento/module-customer/view/frontend/templates/form/edit.phtml
)
But here it showing the amazon pay module core file.
If any of my extension override that edit.phtml file means, it will show that path. But unfortunately, it shows another core module path (amazon-pay-module).
I'm totally confused with that. Why it is showing the core file path and tested with default magento 2 package, it also shows the correct path from module-customer (core file).
Hereby I have attached the image.
Is I want to override the amazon-pay-module here? It was correct.
can anyone please help me to shootout the issue?
Thanks in advance!.
Best Answer
You need to overwrite the file
to your theme.
So Like this
And then Clear the cache it should work.