Graphikaweb Posted September 5, 2019 Share Posted September 5, 2019 made a module that allows to display products categories on the home Living room Product 1 Product 2 Product 3 Product 4 The problem is that the module displays the products according to the photos Living room Product 1 (photo 1) Product 1 (Photo 2) Product 1 (Photo 3) Product 1 (Photo 4) Product 2 (photo 1) Product 2 (Photo 2) Product 2 (photo 3) I do not see how to solve this problem by limiting the number of photos per product? Thank you in advance for your help. PS I USE PRESTA 17.4.4 Link to comment Share on other sites More sharing options...
Rolige Posted September 6, 2019 Share Posted September 6, 2019 Hello: You should study how other similar modules do it, for example "newproducts". You will find the query (this is what you have probably wrong on your code) at Product::getNewProducts. This is the query key: "WHERE image_shop.cover=1" because there are just 1 cover image by product. Regards 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