Hi,
I want to call the 5 most sold products and show them in a div among each other. For the products I want to show their image, name and sku. How can I do this?
Caro
Hi,
I want to call the 5 most sold products and show them in a div among each other. For the products I want to show their image, name and sku. How can I do this?
Caro
Hi Caro
You can create a query in repositories.
The index has a field called "order count" for each product. So if you search for what you need - and sort by the ordercount field, and limit the result to 5 products, then you get the most sold. You can add expressions to the query - to i.e. show the 5 most sold in a group, or in a specific color or whatever you need.
Something like this:
You must be logged in to post in the forum