cchris-king Posted October 11, 2017 Share Posted October 11, 2017 hello everybody i hope you all are doing well so i would like to use jquery to make a parallax scroll effet in product page on tabs and i wrote the jquery on the bottom of the product.tpl file i don't even know if there is jquerry in prestashop how to use in this paricular page thank you all in advance ! Link to comment Share on other sites More sharing options...
ENS Enterprises Posted October 14, 2017 Share Posted October 14, 2017 Hi, You can use {literal} tag. Please refer https://www.prestashop.com/forums/topic/163212-how-to-integrate-javascript-in-prestashop/ for more information. Link to comment Share on other sites More sharing options...
Rhobur Posted October 15, 2017 Share Posted October 15, 2017 Not a good idea or recommended to use js in the tpl file. Add your code in themes/your_theme/js/product.js Link to comment Share on other sites More sharing options...
cchris-king Posted October 17, 2017 Author Share Posted October 17, 2017 Hi Rho_Bur thank you for your answer, if i write my js code in the folder you just sugested how will i include it in product page knowing that there is no <head> in product tpl ? by the way my jquerry code tpl seems to doesn't works ! 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