Hi i want to add my custom phtml file or code to registration page using magento.I found the code for registration but dont know where i can update it.From customer.xml i got this code
<customer_account_create translate="label">
<label>Customer Account Registration Form</label>
<!-- Mage_Customer -->
<remove name="right"/>
<remove name="left"/>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
<block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label">
<label>Form Fields Before</label>
</block>
</block>
</reference>
</customer_account_create>
My block code is
<module_index_index>
<reference name="content">
<block type="module/module" name="module" template="module/module.phtml" />
</reference>
</module_index_index>
I want to show my page at the end of registration page on my website.Thanks in adanace
I would suggest creating a layout.xml file for your module.
First you will need to define this file in your module's config.xml:
<frontend>
<layout>
<updates>
<your_module>
<file>your_module.xml</file>
</your_module>
</updates>
</layout>
</frontend>
Then create this layout file under: design/frontend/base/defualt/layout
<?xml version="1.0" encoding="UTF-8"?>
<layout>
<customer_account_create>
<reference name="content">
<block type="module/module" name="module" template="module/module.phtml" />
</reference>
</customer_account_create>
</layout>
This should then add your module at the end of the registration page.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.