tommat Posted November 25, 2018 Posted November 25, 2018 Hello, Is it possible to change content in smarty, depending on which hook is something hooked. For example: If this is in hook displayLeft change html content else do nothing Thanks
0 dosbiner Posted November 26, 2018 Posted November 26, 2018 yes its posible, you can set different template each hook using tpl file. for example see social sharing module inside module you can see views > templates > hook > tpl files
0 tommat Posted November 26, 2018 Author Posted November 26, 2018 @dosbiner thankls for your answer. So there's no way to do it without changing php files i guess? Problem with that is, if there's update to module i loose all my changes.
0 dosbiner Posted November 26, 2018 Posted November 26, 2018 Yep, must edit php files. Try this to override module core files, but I never tried it http://nemops.com/override-prestashop-modules-core/
0 tommat Posted November 26, 2018 Author Posted November 26, 2018 @dosbiner thanks a lot. I'll try that
Question
tommat
Hello, Is it possible to change content in smarty, depending on which hook is something hooked. For example:
If this is in hook displayLeft change html content else do nothing
Thanks
4 answers to this question
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