Jump to content

Add PHP CODE in header or footer


Shellanza

Recommended Posts

I would say try with a module, but since you are new to prestashop I guess you don't know how to code one.
If you can simply paste the code in, just add it to initContent, around line 534 of classes/controller/FrontController.php

  • Like 1
Link to comment
Share on other sites

  • 5 years later...
On 11/2/2017 at 12:08 PM, NemoPS said:

I would say try with a module, but since you are new to prestashop I guess you don't know how to code one.
If you can simply paste the code in, just add it to initContent, around line 534 of classes/controller/FrontController.php

Thank you, exactly what I want.

Link to comment
Share on other sites

On 11/2/2017 at 3:32 PM, Shellanza said:

Hi there,

I need to insert a PHP code in all pages of the website (Prestashop 1.7) because I need to set a snipper for a third party API (Affiliatly).

I'm new in prestashop and I don't understand how to do. Any suggestions?

 

Thanks

Hi,

The way is to create a small module , register hookHeader() and add code  in hookHeader().

Thanks

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