cancel
Showing results for 
Search instead for 
Did you mean: 

Can't override registration page

Can't override registration page

Hi everyone, I stucked at one thing. If anyone can help it would be great.

I created new child theme, put Magento_Theme folder and customized templates successfully. But all customer pages such as registration are not changed, it has main theme styles and lyout. So I crated Magento_Customer folder in child theme and created files:
Magento_Customer/layout/customer_account_create.xml

Magento_Customer/templates/form/register.phtml

And still there is no changes, register.phtml still loads from
 /vendor/magento/module-customer/view/frontend/templates/form/register.phtml

Magento ver is  2.2.1
Any ideas?

8 REPLIES 8

Re: Can't override registration page

Hi @efimov,

 

Is there any block of your child theme being loaded?

Is you store in developer mode?

Re: Can't override registration page

No blocks,
Yes dev mode is on.

Re: Can't override registration page

Hi @efimov,

 

Can you share your theme configuration and the theme xml?

Re: Can't override registration page

Im experiencing the same issue I went through all files 1000 times to find out why this is happening. For some reason magento 2 enterprise does not pull the html file from where you would assume magenta-customer but rather from here module-customer-custom-attributes/view/frontend/templates/customer/form/register.phtml. 

 

Can anybody explain why this is the case?

Re: Can't override registration page

I actually found the reason but not explanation. Can somebody clarify why this has been done.

<referenceBlock name="customer_form_register">
<action method="setTemplate">
<argument name="template" xsi:type="string">Magento_CustomerCustomAttributes::/customer/form/register.phtml</argument>
</action>

Re: Can't override registration page

@drunkenrobot   Reason behind Magento 2 Enterprise uses, Registration page come from Magento Customer Custom Attribut

Magento 2 EE supports Default Customer Attribute and Customer Address Attribute value where Magento Community(Open Source) doesn't support defafult customer Attribute and Customer Address Attribute section.

 

Check Registration.phtml file path for Open Source vs Magento Commerce in details, Override register.phtml template OpenSource vs Magento Commerce 

 

If Any user create customer attribute from backend,

Stores -> Configuration -> Attributes -> Customer

All the newly created customer attribute will be come from,

module-customer-custom-attributes/view/frontend/templates/customer/form/register.phtml

above file.

So For Magento Commerce Only registration page coming from above module.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Can't override registration page

Excellent answer Rakesh thank you I need to brush up on magento 2 ee. Also can't really accept as solution because its not my post. Thank you very much and Cheers!

Re: Can't override registration page

No, Magento EE always takes module-customer-custom-attribute module for registration page.

Because There are many default Magento customer attribute inbuilt with magento. Like prefix,first name,last name,email,dob.

 

So Always registration page coming from module-customer-custom-attribute module whether you create new custom customer attribute or not.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial