overbags Posted October 11, 2018 Share Posted October 11, 2018 (edited) good morning I bought a module on addons / prestashop ... I tried to contact the developer but he never answers me .... this module gives the possibility to place the hook where I want. I created the hook in the database called "displayproductfield" I grafted it to the module in modules --- positions but I do not know how to insert the hook in the product.tpl page ... in the form page is written. "The option is used in case when your theme was changed to a lot. Hook :: exec ('customHookName', array ('product' => $ this-> product)) {hook h = 'customHookName' product = $ product} " .. but I do not know how to place it .. is it all in the product.tpl file? I imagine that instead of customHookName should put displayproductfield ... but if I put Hook :: exec ('displayproductfield', array ('product' => $ this-> product)) {hook h = 'displayproductfield' product = $ product} the product.tpl page from error Edited October 12, 2018 by overbags Resolved (see edit history) Link to comment Share on other sites More sharing options...
Rolige Posted October 12, 2018 Share Posted October 12, 2018 In the product.tpl you need insert the hook like this: {hook h='theHookNameHere' product=$product} Of course you need change the *theHookNameHere* for the correct hook name. Link to comment Share on other sites More sharing options...
overbags Posted October 12, 2018 Author Share Posted October 12, 2018 great thank you very much 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