vuderok Posted July 15, 2016 Share Posted July 15, 2016 Hi all! I'm using the Add To Cart Fly Effect module. I want only disable the animation on devices without the popup message. So I can not use the option module disable for devices from the admin panel so that it turns off the module completely. It is necessary to rule addToCardAnimation.js code I think. Link to comment Share on other sites More sharing options...
vuderok Posted July 15, 2016 Author Share Posted July 15, 2016 UP Link to comment Share on other sites More sharing options...
vuderok Posted July 15, 2016 Author Share Posted July 15, 2016 No one knows how to specify the code to hide the animation on the devices or on the small screen? Link to comment Share on other sites More sharing options...
rocky Posted July 16, 2016 Share Posted July 16, 2016 You can use code like the following in the PHP file that adds the JavaScript: if ($this->context->isMobile()) { // Add JavaScript file for mobile here } else { // Add JavaScript file for tablet and desktop here } Link to comment Share on other sites More sharing options...
vuderok Posted July 16, 2016 Author Share Posted July 16, 2016 Thanks for the reply, but can you explain this? I am not good in php code in Java code. Link to comment Share on other sites More sharing options...
rocky Posted July 17, 2016 Share Posted July 17, 2016 Sorry, I can't be more specific since it's a paid module I can't access. You'll need to search the main PHP file of the module for $this->context->controller->addJS and then wrap it in the if statement above. Link to comment Share on other sites More sharing options...
vuderok Posted July 19, 2016 Author Share Posted July 19, 2016 If I gave you access to my file server, could you help me resolve this issue? I tried a few options but I did not. I know that for a man who knows this is a simple question, but for me it is a dense forest. Thank you. Link to comment Share on other sites More sharing options...
rocky Posted July 20, 2016 Share Posted July 20, 2016 Sure, you can send me a private message with your FTP and Back Office details. 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