2

My registration page is coming from path:

/app/design/frontend/Mgs/claue/Magento_Customer/templates/form/register.phtml

I am trying to load that in a CMS page. Not sure how to do that. Tried many ways but no luck. including {{block class="Magento\Customer\Block\Form\Register" name="custom-create" template="Magento_Customer/templates/form/register.phtml"}}

How to include that in CMS page?

3 Answers 3

4

Just Try to below code :

{{block class="Magento\Customer\Block\Form\Register"  template="Magento_Customer::form/register.phtml"}}
1
  • @H_Parekh, how your answer was different than the answer of Amit Bera? Commented Jun 7, 2018 at 11:52
1

it should be

{{block class="Magento\Customer\Block\Form\Register" name="custom-create"  template="Magento_Customer::form/register.phtml"}}
2
  • how your answer was different than the answer of Amit Bera? Commented Jun 7, 2018 at 11:53
  • I think you have missed the added time. All 3 added almost same time, 1st Parekh but with a minor mistake (that was edited later), 2nd me, 3rd Amit
    – Sandipan S
    Commented Jun 8, 2018 at 5:03
1

template path is wrong

It should be

template="Magento_Customer::form/register.phtml 

from

template="Magento_Customer/templates/form/register.phtml"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.