Post by hamede6 » Sun Jan 16, 2022 8:13 pm

creating a separate open cart theme for displaying on smaller screen resolutions. Is there a way to detect the device/screen width and switch the theme to the mobile? For example when user on pc show catalog\view\Desktop and when user on mobile show catalog\view\Mobile

Newbie

Posts

Joined
Sun Jan 16, 2022 8:10 pm

Post by Cue4cheap » Sun Jan 16, 2022 9:47 pm

You can do that with something like @media using css but to use a separate template? That just doesn't seem like a goo way to go using css is much more efficient.
Look at the default theme as an example.
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by straightlight » Mon Jan 17, 2022 1:53 am

OC version. There are, however, extensions on the Marketplace that allows to do that type of thing to switch themes between routes.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 36 guests