philx Posted June 27, 2014 Share Posted June 27, 2014 hi, I am new to prestashop and I am trying to include an SSI directive in main shop page. The SSI tag I have to include is: <!--#include virtual="/links/in.php?sk=82dd370b56650d7ede5627b84ea8780158523d2f"--> I tried to modify the header.tpl located at: admin5110/themes/default/template by adding the following code {if $page_name=='index'}<!--#include virtual="/links/in.php?sk=82dd370b56650d7ede5627b84ea8780158523d2f"-->{/if} just before the <head> section. Is this the correct way to do it, or is there any more simple way ? Bye philippe Link to comment Share on other sites More sharing options...
vekia Posted June 27, 2014 Share Posted June 27, 2014 hello that kind of code you're trying to add? from where you got it? it doesnt look like smarty code, even not like a html. Link to comment Share on other sites More sharing options...
philx Posted June 27, 2014 Author Share Posted June 27, 2014 Hi vekia, thanks for such a quick reply !! It's an SSI include directive that I usually put in static shtml pages. the apache server is configured to execute this server side directive when a user access the .shtml page. it's used to count incomming traffic by another php top site script that I use for the links section of my shop. the script is installed and running, but I need to include this SSI tage or find a way to have prestashop execute this code from the main index page. It's my own VPS server and I have full root access if I need to change any config. bye philippe 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