Caroline W Posted April 28, 2014 Share Posted April 28, 2014 I am trying to accomplish the following: On the product list pages, when a product is being hovered another template (a module) is called displaying thumb versions of all images. I want to add all available product combinations as a list next to the images. I used the code found in this thread (http://www.prestashop.com/forums/topic/279551-how-to-show-product-attribute-option-in-product-list/?p=1518229). I have copied the function to the modules controller file, but I'm missing something cause nothing shows up. There's nothing wrong with the code itself as I can foreach the combinations from the product-list template (with the function in the CategoryController file.) This works fine. I need this code to work in another class (a module class) What am I missing? Does the variables need to be assigned differently? Again? Needless to say, I guess, I'm new to PrestaShop, php classes and smarty. I've also tried with an sql query (which works fine in the Sql Manager) and edited it according to Presta coding standards, but not able to access the result. Can anyone give me a helping hand? 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