Magento Question:
Download Job Interview Questions and Answers PDF
How to set different themes for logged in users?
Answer:
1) if(Mage::getSingleton('customer/session')->isLoggedIn()):
2) Mage::getDesign()->setPackageName('package_name')->setTheme('themename');
3) endif;
2) Mage::getDesign()->setPackageName('package_name')->setTheme('themename');
3) endif;
Download Magento Interview Questions And Answers
PDF
Previous Question | Next Question |
How to add an external javascript/css file to Magento? | How to get the total price of items currently in the Cart? |