Wednesday 9 March 2016

How to change the theme for logged user in Magento

If you want to change Magento Theme for which user is login. Then you can use following code:


<?php


if(Mage::getSingleton('customer/session')->isLoggedIn()):

Mage::getDesign()->setPackageName('your_package_name')->setTheme('your_themename');

        endif;

?>




8 comments:

  1. I was looking for these kind of posts about the changed theme logged User in Magento. Really informative posts. Thanks for sharing.
    certified gemstones in Delhi

    ReplyDelete
  2. very nice post with full of information. Thanks for posting and keep updating.
    Suppliers Of Color Profile Sheets : VIMP

    ReplyDelete
  3. Its glad to know about the changed theme with lots of informations. Thanks for posting. Keep updating.
    uboard

    ReplyDelete
  4. This kind of posts is really great, thanks for it.
    certified gemstones online

    ReplyDelete
  5. Best gemstone shop in Delhi | Certified gemstone shop in Delhi | Vedic Gemstones @PureVedicGems

    Certified Gemstones shop Delhi

    Buy Gemstone Online: PureVedicGems is one of the oldest gemstone provider of Delhi since 1937. We are best astrological gemstone provider. Call us 9810980550 to buy gemstone online.

    ReplyDelete