Kerm Posted October 31, 2017 Share Posted October 31, 2017 Module in two hooks, can i some how hide module from one hook in mobile? PS 1.7.2.x Link to comment Share on other sites More sharing options...
El Patron Posted November 1, 2017 Share Posted November 1, 2017 see our free 1.7 module https://www.prestaheroes.com/en-us/modules/front-end/do-we-deliver-to-you our internal framework allows module configuration of 'any' hook by 'device type'. From this work you can understand how to have hook check device type Link to comment Share on other sites More sharing options...
Kerm Posted November 1, 2017 Author Share Posted November 1, 2017 Sorry El Patron but your answer is incorrect for my question. A already find solution for my problem: You can use prestashop default device detect functionality : get device : Context::getContext()->getDevice(); Check Mobile : Context::getContext()->isMobile(); Check Tablet: Context::getContext()->isTablet(); 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