Introduction:

There is no doubt that Custom Login Redirect Pro is the one and only extension for Magento which provides custom redirection based on customer login/new account creation/logout events.

If you are using this extension for redirecting your customer to custom page after login event, then you may want to keep the customer loggedin in another store as well. In order to keep your customer loggedin in another store after login, just note the following steps:

4. That’s all Refresh the cache of Magento backend & browser. Now, try to login from domain.com (or any store configured under same Magento installation) as Customer Group1 and you will be redirected to store1.domain.com with logged in status.

Notes: This only works if your store urls are configured as sub-domains or main domain with store codes turned on.

In this article, I will be explaining how to merge the customer registration form with the default login form of Magento. Let’s take a look at the following snapshots. You will know what i am talking about:

Default Login Page

Merged Register / Login Form

Making a long story short, we just need to implement the following few steps in order to get it done:

1. Creating mini.register.phtml file:

First you need to create a new template file: app/design/frontend/[your-interface]/[your-theme]/template/customer/form/mini.register.phtml And copy the contents of default register file: app/design/frontend/base/default/template/customer/form/register.phtml to the mini.register.phtml and customize as per your requirement.

If you want like the one depicted in above snapshot then you can simply download the customized mini.register.phtml file from [here]

2. Including mini.register.phtml in login.phtml

First copy the file: app/design/frontend/base/default/template/customer/form/login.phtml to your current theme as:app/design/frontend/[your-interface]/[your-theme]/template/customer/form/login.phtml And now you need to modify the new login.phtml so that you can include the contents of mini.register.phtml. For this, you have to use the following xml code in your layout xml file (preferably in app/design/frontend/[your-interface]/[your-theme]/layout/local.xml) as:

Now you can simply include the mini.register.phtml in your new login.phtml file as:

<?php echo $this->getChildHtml('customer_form_register2'); ?>

OR You can simply download the modified login.phtml file from [here] and place in your template folder as: app/design/frontend/[your-interface]/[your-theme]/template/customer/form/login.phtmlNotes: Unset of child block: ‘customer_form_login’ and using different name: ‘customer_form_register2’ for the corresponding block is important else you will get double login block.

3. That’s all.

Now clear the cache and reload the customer login page: http://your-mage-store/customer/account/login, You will of course see some good results.