0

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?

0

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
  • Thank you roshan for your help. But what file I need to add the above code? – Wakanina Apr 13 '13 at 1:10
  • Create a controller action and there you can put this code. Create a form that will switch theme on button click. – roshan lal Apr 14 '13 at 4:17
  • Thank you Roshan, it works. I start my project with this code :) – Wakanina Apr 16 '13 at 6:03
0

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

  • Thank roshan lal for your response. But I don't want to make new store view to do this. – Wakanina Apr 11 '13 at 6:58
  • Well then would you try changing user-agent of browser on button click. hynchrstn.wordpress.com/2011/11/24/… – roshan lal Apr 11 '13 at 7:02
  • @Wakanina - Did you get any solution? – roshan lal Apr 11 '13 at 12:42
  • Sorry for the late Roshan. My PC was crashed yesterday. Thanks, I will try it. I will update this thread when it success. – Wakanina Apr 13 '13 at 23:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.