Reputation: 133
I want one of my collection to show the top 20 best selling items in my store in order and I want it to update dynamically.
No idea where to start.
Upvotes: 2
Views: 16897
Reputation: 2173
Create a collection in store admin. Add all your products inside and choose "sort by best selling" option.
Loop through this collection in code to display it by setting limit:20 parameter in your forloop opening.
Upvotes: 8
Reputation: 11427
Sit back and profit!
Upvotes: 1