Spark111 Posted September 11, 2013 Share Posted September 11, 2013 I am using version 1.5.3.1. Is it wise and possible to replace /tools/mobile_detect/Mobile_detect.php with the lates version available on http://code.google.com/p/php-mobile-detect/ ? Or do other adjustments have to be made? Thanks for any reply. Link to comment Share on other sites More sharing options...
Spark111 Posted September 13, 2013 Author Share Posted September 13, 2013 Anybody? I would value some advice, as mobile devices are becoming more and more important. Link to comment Share on other sites More sharing options...
ps_developer Posted November 17, 2013 Share Posted November 17, 2013 (edited) Hi Spark111, Replying your question. I have updated this today for http://www.ociohogar.com. I have downloaded latest version from the the code.google.com site. I just replaced the older Mobile_Detection.php file with the newer one, you don't need to do anything else. BTW, even prior to this I had to do couple of changes on the mobile template logic so that smartphones (iPhone and small Android devices) would get detected as mobile but any kind of tablets would not get detected as mobile (I do want the regular website to show in iPad and other tablets). The mobile_theme module as downloaded from Prestashop doesn't work properly on this. I was getting iPad and other tablets detected as mobile even if I would configure the module to activate mobile web on smartphones only. What I did: - modify Mobile_Detection.php, at the "isMobile" function I add a check that "if (isTablet == true)" then I return false right away from the isMobile function. I had to make also couple of changes at the settings.php file. With this now I believe is working properly in all or most cases, I will have to keep updating from time to time the Mobile_Detection.php file from the site you pointed out above. Best Rgds and good luck, Roberto Edited November 17, 2013 by ps_developer (see edit history) 1 Link to comment Share on other sites More sharing options...
Spark111 Posted November 18, 2013 Author Share Posted November 18, 2013 Thanks. Great tip. Regards, Link to comment Share on other sites More sharing options...
2079571 Posted May 24, 2015 Share Posted May 24, 2015 Hi ps_developer, Could you post the changes in Mobile_Detection.php? I have the same problem with the visualization of the normal web in my ipad and I can't make the modifications correctly. Thanks in advance, Miguel. Link to comment Share on other sites More sharing options...
Recommended Posts