How can I override the registration page?

All we need is an easy explanation of the problem, so here it is.

I’m trying to add phone and address fields to the account registration form, as per this SO post.

To override the core functionality, I copied app/design/frontend/base/default/template/customer/form/register.phtml to app/design/frontend/{package}/{theme}/default/template/customer/form/register.phtml, as would be expected.

The problem is that no changes are detected when added to the new template, not even simple changes such as editing field labels. Stranger still, not even changes made to the core template are detected.

I have verified the file paths are correct, including namespace, and made sure file ownership and permissions are correct.

I have cleared the Magento cache many times (all of it), and even tried viewing the page in incognito mode and with other browsers to rule out browser cache. Also, there is no caching at the server level.

Am I missing something? I’ve successfully overridden core template files numerous times before, but is there something more that I need to do for the registration form templates?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

It is because you are making changes to wrong files. The correct file for registration form should be

app/design/frontend/base/default/template/persistent/customer/form/register.phtml

So copy the file in your theme

app/design/frontend/{package}/{theme}/template/persistent/customer/form/register.phtml

And it should work.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply