Jump to content

Edit History

Maryando

Maryando

Please delete this. Thanks

Maryando

Maryando

Hello guys!

Can you advise me how can I add the script code to any CMS page and footer? I have email marketing service which offers popups and newsletter and just need to inject their code into the website. 
I'm working on the latest Prestashop installation. 
So for the newsletter I would like to inject it in the footer and for popups in the header. 
I have also some popups which need to be displayed only on specific CMS pages.  

I have read all the post available in Google but they are mainly for the old versions of PS and not working anymore. 

For CMS pages I have used this method below using CMS page ID's and I inserted it into my_theme/templates/cms/page.tpl but no luck.

{if $cms->id==20}
{literal}
....SCRIPT HERE...
{/literal}
{/if}

Inserting the script in my_theme/templates/_partials/header.tpl  have also no results.

I will by super grateful for your valuable help guys. 
Thanks 
Best Regards

Maryando

Maryando

Hello guys!

Can you advise me how can I add the script code to any CMS page and footer? I have email marketing service which offers popups and newsletter and just need to inject their code into the website. 
I'm working on the latest Prestashop instalation. 
So for the newsletter I would like to inject it in the footer and for popups in the header. 
I have also some popups which need to be displayed only on specific CMS pages.  

I have read all the post available in Google but they are mainly for the old versions of PS and not working anymore. 

For CMS pages I have used this method below using CMS page ID's and I inserted it into my_theme/templates/cms/page.tpl but no luck.

{if $cms->id==20}
{literal}
....SCRIPT HERE...
{/literal}
{/if}

Inserting the script in my_theme/templates/_partials/header.tpl  have also no results.

I will by super gratefull for your valuable help guys. 
Thanks 
Best Regards

×
×
  • Create New...