Jump to content

How to insert cookie declaration to just one page?


rimstaske

Recommended Posts

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...

vaizdas_2022-04-13_024603689.png

Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...