0

I am creating a mobile theme for the magento store so that the same url(e.g. example.com) for the store when watched in the mobile devices then it will look differently.

I have added the exception feature of magento in the admin site for the mobile devices.

Now in the footer I want to keep a link called "View full site" which when clicked , should show the other theme which is used for the desktop view.
How can I do this ?

8
  • have you created to two store (1 desktop & 2 mobile)?
    – Abdul
    Jan 12, 2016 at 10:58
  • no I'm restricted to do that .. Jan 12, 2016 at 11:04
  • desktop theme & mobile theme apply same store?
    – Abdul
    Jan 12, 2016 at 11:07
  • yes you are right.@Abdul Jan 12, 2016 at 11:08
  • e.g. example.com/?___store=default is desktop & e.g. example.com/?___store=mobile
    – Abdul
    Jan 12, 2016 at 11:10

2 Answers 2

1

You have to build a small module and rewrite the design_package model in Magento.

See instructions in this article: http://www.classyllama.com/blog/switching-desktop-when-using-design-exceptions-custom-mobile-theme

1
  • I am facing problem implementing the above instuctions.I have uploaded the module in respective folder.but there is an error coming as " Class 'Mage_Cls_Designswitcher_Helper_Data' not found".. But the helper class is "CLS_DesignSwitcher_Helper_Data". Jan 12, 2016 at 12:26
0

When you click on this link you can set a cookie that you can use to load the mobile theme or the original one.

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.