bogdan90i Posted April 30, 2014 Share Posted April 30, 2014 I would like to know if there is an option to change between desktop view and mobile view. When i acces my website (default theme) with my android phone i would like the option to switch to desktop view. Link to comment Share on other sites More sharing options...
vekia Posted May 1, 2014 Share Posted May 1, 2014 what theme you use? and what prestashop version? Link to comment Share on other sites More sharing options...
bogdan90i Posted May 1, 2014 Author Share Posted May 1, 2014 I'm using prestashop 1.6.0.5 and the default theme that comes with prestashop. Link to comment Share on other sites More sharing options...
vekia Posted May 1, 2014 Share Posted May 1, 2014 prestashop 1.6 uses responsive template, it mean that there is no "mobile" version of the website. This version uses only one template which is responsive and you can't switch view to "normal" on mobile devices. this is how responsivness works, totally different than theme in 1.5 (where you've got two templates, first for desktop second for mobile) Link to comment Share on other sites More sharing options...
bogdan90i Posted May 1, 2014 Author Share Posted May 1, 2014 Ok but i found in tools/mobile detect folder a file named Mobile_Detect.php and in it was this: /** * Utilities. * * @var array */ protected static $utilities = array( // Experimental. When a mobile device wants to switch to 'Desktop Mode'. // @ref: http://scottcate.com/technology/windows-phone-8-ie10-desktop-or-mobile/ // @ref: https://github.com/serbanghita/Mobile-Detect/issues/57#issuecomment-15024011 'DesktopMode' => 'WPDesktop', 'TV' => 'SonyDTV|HbbTV', // experimental 'WebKit' => '(webkit)[ /]([\w.]+)', 'Bot' => 'Googlebot|DoCoMo|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|facebookexternalhit', 'MobileBot' => 'Googlebot-Mobile|DoCoMo|YahooSeeker/M1A1-R2D2', 'Console' => '\b(Nintendo|Nintendo WiiU|PLAYSTATION|Xbox)\b', 'Watch' => 'SM-V700', ); It says "When a mobile device wants to switch to 'Desktop Mode'. I see it says experimental but i don't know how to implement it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now