I’m using this code to create a list of best selling items in Magento:
Does anyone know how this could be edited so it would show best selling items from a specific category?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(Link was dead. Seems to work now.)
I’m not an expert, yet, but I believe you want to add a filter to the product collection.
In the line:
You want to add a filter for category. I’m assuming you’re looking for a static category here, and not something dynamic from context or user input. The code below replaces the above – load the category object from the category number, then apply the filter. I think it should work.