xgarb Posted October 31, 2021 Share Posted October 31, 2021 (edited) Working on my first module to show the category path for all categories a product can be found in. I've read the docs and looked at the customer reviews module for inspiration. I'm a bit stuck on the structure for this. I guess as I'm targeting a hook on an existing page I don't use a controller? I should use a separate file in the module root for my database query and refer to this in the main module file? I need to create an array and pass this to the template which will loop through the values? I just need some pointers on what code would end up where. I've used similar MVC with Smarty before but I'm not sure where things should be in Prestashop. Thanks, xgarb Edited October 31, 2021 by xgarb (see edit history) 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