i'm trying since few day to change the redirection when a"customers" complete is registration on my magento website. Actually, when the registration is complete you are redirect to your account. And i just want to redirect to the index.php ( the homepage of my website). I'm a newbie and i just want to change few lines on code. I'll not able to creat event for exemple.
Can someone help me ?
I think the page is AccountController.php and code :
protected function _welcomeCustomer(Mage_Customer_Model_Customer $customer, $isJustConfirmed = false)
{
$this->_getSession()->addSuccess(
$this->__('Thank you for registering with %s.', Mage::app()->getStore()->getFrontendName())
);
$customer->sendNewAccountEmail(
$isJustConfirmed ? 'confirmed' : 'registered',
'',
Mage::app()->getStore()->getId()
);
$successUrl = Mage::getUrl('/*/*/index', array('_secure'=>true));
if ($this->_getSession()->getBeforeAuthUrl()) {
$successUrl = $this->_getSession()->getBeforeAuthUrl(false);
}
return $successUrl;
}
I've tried to change this line :
$successUrl = Mage::getUrl('/*/*/index', array('_secure'=>true));
to
$successUrl = Mage::getUrl('index.php', array('_secure'=>true));
but nothing happens...