franco.pentangeli Posted December 27, 2011 Share Posted December 27, 2011 Hi! How can I add my php functions and scripts in header.tpl file? Thanks! F Link to comment Share on other sites More sharing options...
shacker Posted December 27, 2011 Share Posted December 27, 2011 you cant in presta 1.4, in 1.3 can use a tag {php} {/php} but is not recommended, use smarty to program Link to comment Share on other sites More sharing options...
franco.pentangeli Posted December 27, 2011 Author Share Posted December 27, 2011 In fact the system says that {php} is deprecated. So, If want to echo something, how can I do it? Link to comment Share on other sites More sharing options...
bellini13 Posted December 27, 2011 Share Posted December 27, 2011 the right way is to create a module that hooks the header. the module will perform the php functions, and then just provide the output to display on the page. Link to comment Share on other sites More sharing options...
shacker Posted December 27, 2011 Share Posted December 27, 2011 yep, you can found info of how to create a module in the doc of prestashop.com 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