Articles on: Regios Discounts

Number Calculation Conditions

This article explains how to use number calculation conditions to create powerful, flexible discounts. Calculations let you define a number dynamically and store it in a variable for future comparisons.



📽️ Click the thumbnail above to watch a video demonstration.


Example Use Cases

  • “Apply a discount if quantity of Product A is 3× the quantity of Product B”
  • “Calculate total quantity of products in Collection X and store it for later”
  • “Create tiered discounts based on the sum of specific quantities”


What Are Calculations?

Screenshot of a calculation condition that multiplies the count of specific products by 3


Calculations are a type of condition that compute a number and assign it to a variable. You can then:

  • Reference that variable later in your logic
  • Use arithmetic (+, −, ×, á)
  • Work with dynamic values like product quantities, cart totals, or other calculations


How to Use It

1. Add a Calculation

  • In the Logic Builder, click Add Criteria
  • Select Calculate a Number

2. Configure the Expression

  • Use math operators to combine terms
  • Example:

→ Quantity of Product A × 3 = quantity_times_three

  • This assigns a variable called quantity_times_three

3. Use the Result

  • Add a Compare Numbers condition
  • Left side: Quantity of Product B
  • Right side: the variable quantity_times_three
  • Now the logic says: “Only apply the discount if quantity of B equals 3× A”


Notes

  • You can combine constants, quantities, and even other calculated values
  • Calculations don’t do anything on their own—they must be used later in a condition
  • Use clear variable names so the logic is easy to follow


Your Feedback Matters

Your review helps keep this small business running. Please leave one on the Shopify App Store.

Updated on: 07/07/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!