Wednesday, June 8, 2016

set different themes for logged in users or set different themes on runtime

 if(Mage::getSingleton('customer/session')->isLoggedIn())
{
Mage::getDesign()->setPackageName('packagename')->setTheme('themename');
}

No comments:

Post a Comment

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method... magento 2

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method and must therefore be declared abstract or implement the remaining met...