lucasmds Posted February 16, 2022 Share Posted February 16, 2022 Hi. I'm starting in Prestashop development and I'm building a new theme. I saw that in Prestashop it doesn't have the wish list feature, compare list and reviews natively. So I found modules for wishlist and comments (made by Prestashop) and installed them. But now, what is the way to add them to the frontend? Link to comment Share on other sites More sharing options...
JBW Posted February 16, 2022 Share Posted February 16, 2022 You need to add the hooks to your template files where the modules are attached to. Take classic theme as a starting point and embeed all hooks that are inside there as well Link to comment Share on other sites More sharing options...
lucasmds Posted February 16, 2022 Author Share Posted February 16, 2022 I was able to do this by opening the module's PHP file and seeing the hooks that were listed (I don't know if there would be another way to find the hooks). Let me ask you another question: in the wishlist module, some templates are from Vue, and in that case how do I "overwrite this template"? For example, I saw that by copying a template file (from that same module) to the theme directory, under the same path, I can make changes to it and not to the original file. Link to comment Share on other sites More sharing options...
JBW Posted February 17, 2022 Share Posted February 17, 2022 As said your theme should implement all hooks to be compatible with any kind of module in the future. Best reference is to look at classic theme Link to comment Share on other sites More sharing options...
lucasmds Posted February 17, 2022 Author Share Posted February 17, 2022 OK. I made it. What about this? Quote Let me ask you another question: in the wishlist module, some templates are from Vue, and in that case how do I "overwrite this template"? For example, I saw that by copying a template file (from that same module) to the theme directory, under the same path, I can make changes to it and not to the original file. 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