Can we build custom logic inside the store or by creating a collection page to grab the latest bestselling products for the past 7 days instead of using a paid app?
Hey @Namish_Kapoor! Shopify’s built-in “best selling” sort is based on all-time sales, not a rolling time window. There’s no native way in Liquid to filter by sales within a specific date range since Liquid doesn’t have access to order analytics data.
To get time-based bestsellers, you’d need something that can query order data and update your collection accordingly. A custom app using the Admin API could do this - the orders query supports date filtering (e.g., query: "created_at:>2026-01-01"), so you can pull orders from the last 7 days, aggregate quantities by product, and then use tagsAdd to tag your top sellers or reorder a manual collection. You’d run this on a schedule (daily cron, serverless function, etc.) and it would require read_orders and write_products scopes.
I’ve submitted a feature request on your behalf for time-based bestseller sorting options. The more a specific feature is requested by our merchants and partners, the more likely it is to be considered for future development by our product teams so thanks for raising this!