rimstaske Posted April 12, 2022 Share Posted April 12, 2022 Hello who came to this post. I want to ask question: How I can successfully to insert cookie declaration (js script) to for example Privacy policy page? I tried to do something with cms/page.tpl file, but when i inserted data to this file, in my shop in every page i see Cookie declaration... Link to comment Share on other sites More sharing options...
knacky Posted April 13, 2022 Share Posted April 13, 2022 {if $cms.id == 5} your javascript {/if} 5 = id CMS page Link to comment Share on other sites More sharing options...
rimstaske Posted April 13, 2022 Author Share Posted April 13, 2022 3 hours ago, knacky said: {if $cms.id == 5} your javascript {/if} 5 = id CMS page Very thanks! Do you know how to this declaration can be inserted in specific place, for example between text (between 'Privacy policy' points).? Link to comment Share on other sites More sharing options...
knacky Posted April 13, 2022 Share Posted April 13, 2022 (edited) To do this, you would already need to have your own module and use shortcode or hook, or enclose javascript in literal Edited April 13, 2022 by knacky (see edit history) Link to comment Share on other sites More sharing options...
rimstaske Posted April 13, 2022 Author Share Posted April 13, 2022 27 minutes ago, knacky said: To do this, you would already need to have your own module and use shortcode or hook, or enclose javascript in literal Can give me example or guide about it. Im not too enough great to simple understand what exactly should to do. Of course i very more things solved from prestashop forums posts. Link to comment Share on other sites More sharing options...
knacky Posted April 13, 2022 Share Posted April 13, 2022 1. preferences > general > html purifier = disable 2. open cms page in editor 3. show source code 4. put your javascript 1 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