Magento , :
1. mini.register.phtml
: app/design/frontend/[your-interface]/[your-theme]/template/customer/form/mini.register.phtml
: app/design/frontend/base/default/template/customer/form/register.phtml mini.register.phtml .
2. mini.register.phtml login.phtml
: app/design/frontend/base/default/template/customer/form/login.phtml :
app/design/frontend/[your-interface]/[your-theme]/template/customer/form/login.phtml
login.phtml, mini.register.phtml.
XML- XML ( app/design/frontend/[your-interface]/[your-theme]/layout/local.xml) :
<customer_account_login translate="label">
<reference name="content">
<action method="unsetChild"><child>customer_form_login</child></action>
<block type="customer/form_login" name="customer_form_login2" template="customer/form/login.phtml" >
<block type="customer/form_register" name="customer_form_register2" template="customer/form/mini.register.phtml">
<block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" />
</block>
</block>
</reference>
<reference name="head">
<action method="setTitle" translate="title" module="customer"><title>Login or Create an Account</title></action>
</reference>
</customer_account_login>
mini.register.phtml login.phtml :
<?php echo $this->getChildHtml('customer_form_register2'); ?>
- Everything is ready. Now clear the cache and reload the client login page:
http://your-mage-store/customer/account/login
source
share