Load my regsitartion page in CMS page - Magento 2
-
13-01-2021 - |
Question
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?
Solution
Just Try to below code :
{{block class="Magento\Customer\Block\Form\Register" template="Magento_Customer::form/register.phtml"}}
OTHER TIPS
it should be
{{block class="Magento\Customer\Block\Form\Register" name="custom-create" template="Magento_Customer::form/register.phtml"}}
template path is wrong
It should be
template="Magento_Customer::form/register.phtml
from
template="Magento_Customer/templates/form/register.phtml"
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange