Shellanza Posted November 2, 2017 Share Posted November 2, 2017 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 Link to comment Share on other sites More sharing options...
NemoPS Posted November 2, 2017 Share Posted November 2, 2017 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 1 Link to comment Share on other sites More sharing options...
Shellanza Posted November 2, 2017 Author Share Posted November 2, 2017 Thanks, I will have a try! Link to comment Share on other sites More sharing options...
elho Posted November 15, 2022 Share Posted November 15, 2022 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 More sharing options...
Shabab Posted November 16, 2022 Share Posted November 16, 2022 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 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