Use the code below to redirect to any page from a Magento template (phtml) file. In this case, it is a redirect to the home page.
|
1 |
Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getBaseUrl()); |
Redirecting to any page from a template (phtml)
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.