Schedule icon Shopify icon

Generate Daily Product Rankings Based On Sales Data

Use this template
  • 100% fully customizable
  • Includes 7-day free trial
  • Live chat, email support
  • Setup services available

Keep your best-selling products front and center with daily sales-based rankings. This template crunches your sales numbers every 24 hours, gives each product a numbered rank, and shuffles your collection order to showcase what's hot right now.

Frequently asked questions:

What is a template?

Templates are pre-made workflows by our team of experts. Instead of building a workflow from scratch, these have all the steps needed to complete the task.

Can I personalize a template?

Yes! Every step can be customized to meet your exact requirements. Additionally, you can even add more steps and make it more sophisticated.

Can MESA handle the setup for me?

Yes, check out our Expert Workflow Setup. We'll collaborate with you to craft the perfect workflow so you're up and running with confidence.

Other workflow requirements:

How this template works:

Step 1.

Trigger daily ranking

The workflow starts automatically every day at midnight to refresh sales data.

Trigger daily ranking
Step 2.

Define ranking inputs

Sets dynamic variables like how many days of sales to review, how many products to rank, and which collection to update.

Define ranking inputs
Step 3.

Query best-selling products

Runs a SQL query to calculate the top-selling products by quantity sold.

Query best-selling products
Step 4.

Fetch current collection products

Retrieves all products currently in the selected collection so their ranking can be reset.

Fetch current collection products
Step 5.

Loop through current collection

This step goes through each product in the existing collection.

Loop through current collection
Step 6.

Reset product rank to zero

Clears any previous ranking by setting the best_sellers_index metafield to 0.

Reset product rank to zero
Step 7.

Loop through new top-sellers

Begins a new loop over the freshly ranked best-selling products.

Loop through new top-sellers
Step 8.

Get product info

Looks up each product from the top sellers to prepare it for re-ranking.

Get product info
Step 9.

Assign new best-seller rank

Updates the product's metafield to reflect its current best-seller index.

Assign new best-seller rank
Step 10.

Sort products in best sellers collection

Uses a custom script to reorder the collection based on updated rankings.

Sort products in best sellers collection

Generate Daily Product Rankings Based On Sales Data

100% customizable. No code required.

Rated 4.8 out of 5 stars on the Shopify App Store

Use this template

Loved by 3k+ businesses worldwide

  • Logo: GLDN
  • Logo: MUD/WTR
  • Logo: Bartesian
  • Logo: Allure
  • Logo: Made In Cookware
  • Logo: Rothy's
  • Logo: Jackie Smith
  • Logo: Full Focus
  • Logo: Car Living
  • icon star orange
  • icon star orange
  • icon star orange
  • icon star orange
  • icon star orange

Fully supported by automation experts.

Get help from our team of experts and industry partners, who are dedicated to ensuring your MESA experience is smooth, efficient, and tailored to your exact business needs.

icon support docs

Knowledge Base

Training guides, tutorials, and platform documentation.

icon partners

Service Partners

Consult on automation strategy to build your workflow.

icon support team

Contact us

5-star customer support and live chat for automations.

MESA is the most customizable automation platform.