ChrisColeman Posted March 20, 2017 Share Posted March 20, 2017 I am working on a site and have used a PHP utility to detect mobiles, tablets, phones etc, and my skin reacts accordingly .. I was just wondering about teh mobile-skin option which I have not used. The question is 'What does CubeCart use to detect mobiles' ? Thanks. Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 20, 2017 Share Posted March 20, 2017 CubeCart has its own internal code that examines the User-Agent signature of the browser application. If the UA string matches a regex pattern, CubeCart will then check if a "mobile-specific" skin has been installed and allowed to be used. The above is predicated on having a skin in use that is not already "responsive". A responsive skin has javascript and CSS rules to reconfigure its layout based on the browser's ability to report its "viewport width". If a responsive skin is set as the default skin, then all functionality to detect a mobile agent is suppressed. From the Marketplace, there is a skin named "Mobile" which is mobile-specific. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted March 20, 2017 Share Posted March 20, 2017 Are you using the Foundation skin? If so, it's designed to be responsive. If you are using one of the v5 skins, you will need to use the Mobile skin as well. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 21, 2017 Share Posted March 21, 2017 I would say it depends a bit. Looking at user agents is tricky because there are so many variations which will change with time. Detecting viewport with CSS media queries is probably a better way to go. Quote Link to comment Share on other sites More sharing options...
ChrisColeman Posted March 21, 2017 Author Share Posted March 21, 2017 Ok thanks - I agree with Al (also with myself?), any way I am using media queries combined with a browser-detect module - Perhaps I didn't need the browser detect but I like to make some items not visible on phones .. For info .. my own skin .. Many Thanks, Chris. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.