Sunday, April 11, 2010

Succesfull Registraion

To Show a new page to user after registraion that he has successfull registered rather than account page

Step 1 .You have to create one page through cms give it's url as
customer/account/newuser

Step 2. Open /code/core/Mage/Customer/controllers/AccountController.php
in method createPostAction()

find this
else {
$session->setCustomerAsLoggedIn($customer);
$url = $this->_welcomeCustomer($customer);
$this->_redirectSuccess($url))

}

comment out $this->_redirectSuccess($url)) statement and add

$this->_redirectSuccess(Mage::getUrl('*/*/NewUser', array('_secure'=>true)));

That should be enough

1 comment:

  1. Hi,

    do you have any idea how to redirect to the homepage of the shop after registration or login? I didn't find anything in the forum. Please help.

    operatorone

    ReplyDelete