Newls Posted August 12, 2013 Share Posted August 12, 2013 (edited) Hi, I created a new module that assign smarty variables via the normal way ( $this->context->smarty->assign('var', 'val'); ) , and i created a hook that i trigger just before the product display, in product.tpl. That's working, but what i really want, is to be able to assign a variable that I can display in product.tpl , is that possible ? Thank you for reading Edited August 15, 2013 by Newls (see edit history) Link to comment Share on other sites More sharing options...
Enrique Gómez Posted August 12, 2013 Share Posted August 12, 2013 The way of being able to add some smarty variables to product.tpl is overriding the init() method of ProductController. But you have some display hooks to put the html you want, and you can also create new hooks inside product.tpl to your layout requirements (http://nemops.com/adding-hooks-to-prestashop-1-5/) 1 Link to comment Share on other sites More sharing options...
Enrique Gómez Posted August 12, 2013 Share Posted August 12, 2013 About overriding you have information in http://doc.prestashop.com/display/PS15/Overriding+default+behaviors Link to comment Share on other sites More sharing options...
Newls Posted August 12, 2013 Author Share Posted August 12, 2013 Thank you Enrique Link to comment Share on other sites More sharing options...
nadie Posted August 13, 2013 Share Posted August 13, 2013 Dear Newls, If the topic has been solved, adds the word "SOLVED" to the title of the topic, this will help maintain a more organized forum. Sorry for my English [sOLVED] Topic If, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution. Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED]. Link to comment Share on other sites More sharing options...
Newls Posted August 15, 2013 Author Share Posted August 15, 2013 Nadie, Bonjour, I can't edit the topic's name, I just can edit my post's content, is that normal ? Thank you Link to comment Share on other sites More sharing options...
nadie Posted August 15, 2013 Share Posted August 15, 2013 Nadie, Bonjour, I can't edit the topic's name, I just can edit my post's content, is that normal ? Thank you Manual: Imagen 01 Imagen 02 Imagen 03 Link to comment Share on other sites More sharing options...
Newls Posted August 15, 2013 Author Share Posted August 15, 2013 Hahaha, Thank you >< Link to comment Share on other sites More sharing options...
akashs Posted December 10, 2015 Share Posted December 10, 2015 hello i am installing smarty module so who to add new post on my bolg Link to comment Share on other sites More sharing options...
akashs Posted December 10, 2015 Share Posted December 10, 2015 any one can help me 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