This is the blog for getting Idea regarding PHP, Magento, jQuery and JavaScript for Customization.

Thursday 16 August 2012

Magento : After logout redirect on home directly

Put This on Customer/logout.phtml

In script

comment setTimeout(function(){ location.href = '<?php //echo $this->getUrl()?>'}5000);

replace with this

setTimeout(function(){ location.href = '<?php //echo $this->getUrl()

    $customerLoginURL = Mage::getBaseUrl();

    Mage::app()->getFrontController()->getResponse()->setRedirect

    ($customerLoginURL)->sendResponse();

     ?>'},5000);

No comments:

Post a Comment