Fanello Posted November 16, 2010 Share Posted November 16, 2010 I have the following task. It is our practice to include a file on every page which holds title and keywords meta tags. This allows us to easily update this information based on the latest keyword research.In PrestaShop, keywords have to be entered in the backend and are stored in the database. Besides, if you want to have keywords on the individual product pages you have to individually enter them per product.I know there are SEO Modules available which allow you to easily add keywords etc. to the individual products, but then still, this information is stored in the database.I look for a way to "break" this mechanism and to make it possible to include our own file which holds the keywords and title etc. I want to use the same keywords for every subpage in the webshop.I tried to modify the header-templates, but these modification seem to get ignored and the resulting source-text in the browser always holds the information which is in the database.Any help or input is greatly appreciated. Thanks a lot!! Link to comment Share on other sites More sharing options...
Fanello Posted November 17, 2010 Author Share Posted November 17, 2010 Hello CommunityI figured it out - maybe it is of help to someone else:The problem was that I didn't empty the compile folder (/httpdocs/tools/smarty/compile) and therefore the changes couldn't be seen.If you don't wan't to permanently empty the compile folder you can change the corresponding smarty template engine preferences to force compiling. In the file (/httpdocs/config/smarty.config.inc.php) on line 10 you can change the ($smarty->force_compile = false; ) flag to true and reset it to false again after your work is done.I also found a solution to include the php file which holds the meta tags. It can be done with the following command:{include_php file='filename.php'}Cheers Link to comment Share on other sites More sharing options...
Recommended Posts