Question

I have added theme Exception for mobile user in System >> Configuration >> GENERAL >> Design.

And I want to add desktop version and mobile version link so the user can switch it.

I have no idea how to do this. Tell me where to start to make this feature?

Was it helpful?

Solution

Write below code in action to set Package and theme for the action

Mage::getDesign()->setArea('frontend') //Area (frontend|adminhtml)
->setPackageName('default') //Name of Package
->setTheme('modern'); // Name of theme

OTHER TIPS

Magento mobile theme works by detecting user-agent of browser. Please refer this link - http://www.magentocommerce.com/boards/viewthread/280148/#t418581

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top