Spectrum is now read-only. Learn more about the decision in our official announcement.

Saleor Commerce

The world’s fastest growing open-source e-commerce platform with billions of dollars transacted. Powered by Python, GraphQL, ReactJS and PWA.

The Saleor Commerce community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →

Best Sellers

May 27, 2020 at 10:53am
I'm trying to display best selling products on my page and I found reportProductSales but I cannot use it as it requires staff permissions. Is there any other way to do this or how can I change the query permissions?

May 27, 2020 at 11:30am
This query is meant for dashboard and we use it to render the home page information:
That's why it requieres admin permission and cannot be accessed by unauthorized users.
You can change admin user permission in the dashboard in Configuration > Staff Members section.
Yes but I want to have best selling products on my home page. Any way I can do this?

May 28, 2020 at 11:14am
Custom code will be needed, no way to get this out of the box. I would approach it this way:
  • create custom plugin
  • trigger it daily / weekly
  • plugin will find most popular items based on sold numbers
  • top 10 products would be added to collection 'Best selling Products'
  • you can query this collection for ex on homepage
Collections are good idea, because you can share url to all those products in for example mailing (ex: )