Jump to content

Load a specific theme / folder for mobile devices - Prestashop 1.6


eCommAgency

Recommended Posts

Hi!
 
We have a Prestashop 1.6 with a responsive template (nothing special here). Let's say it´s in the folder:
www.onlineshop.com/theme/mytheme/
 
Now, we are creating a simple mobile APP (native iOS + Android) that will have one of the buttons will be "Online shop". Our idea is that that button should open (Internally, with the browser and invisible to the customer) Prestashop with a different, super light weight theme:
www.onlineshop.com/theme/mobile/
 
I think Prestashop had a similar functionality in the PS1.4 version. I guess this should depend on the "user agent" (android , iOs) and not on the screen size. So... mobile app should only load "/mobile/" theme and specific modules. What do you think is the most efficient way?
  1. Maybe trough .htaccess?
  2. Creating a Prestashop override that sets the theme on first load?
  3. Any example code?

Thanks in advance,  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...