💲
DollarLabs Helpdesk
  • 💰Dollarback: Store Credit
    • 🚀Get started
      • Configure Order Goals
      • Set fixed amount cashback
      • Set percentage casback
    • 📘Real case studies
      • BlackPeach (+€17k in 30 days)
    • 🫴Show rewards
      • Product Page
      • Cart Page
      • Custom Slide Carts
      • Cashback Widget
      • Checkout Block (Shopify Plus)
      • Customer Account
      • Thank you
    • 💁Referral Engine
      • Referral Analytics
    • 📩Notifications
      • Klaviyo
      • Inbuilt Email
      • Shopify flow
    • ⚡Automations
      • Reward Customers with Store Credit for Reviews using Judge.me
    • 📊Analytics
    • ⚙️Settings
    • ❓FAQ
  • 💲Dollarlabs: Ultimate Discounts
    • 🚀Quickstart
    • Discount types
    • Discount Engine (v2)
      • Cart groups
      • Rules
      • Targets
      • Examples (v2)
        • Get $60 off on each item when purchased in pairs
        • Discount every item except the first item
    • Discount Engine (v1)
      • If X, then do Y
      • Line Limit Strategy
      • Global Line Limit Strategy
      • Discount Application Strategy
      • Discount combinations
      • Rule Builder Variables
      • Invert Logical Operation
      • Bulk Code Generation
      • ⚠️Limitations of Discount engine (v1)
      • Examples (v1)
        • 📦Product Discount Examples (V1)
          • Offer a discount to your VIP / Subscription customers
          • Offer a Free product and a one time discount for subscription purchase
          • Volume discount based on quantity for eligible products
          • Single discount code to apply different discount amounts for different product categories
          • Automatic discount for B2B customers
          • Discounts based on user's purchase market / region
          • Give product for free if the cart value is above $X
          • Buy X items specified to get a discount on Y items. (Buy X Get Y - Bx Gy)
        • 🛒Order Discount Examples (V1)
          • Tiered Cart Discounts: Reward Customers Based on Their Cart Value
    • 🛒Auto add gift to cart based on discount code (plus only)
    • 💼Price lists (B2B)
      • How to setup a price list ?
      • Show the discounted price on the Product page
      • Show Volume breaks on Product page
      • Show discounted prices on the collection page
    • ⚠️Function limitations by Shopify
Powered by GitBook
On this page
  • Understanding the Rule builder
  • How it Works:
  • Let's understand this with an example ?
  • Let's test our logic on a user's cart
  • Walkthrough of the Rule builder UI
  1. Dollarlabs: Ultimate Discounts

Discount Engine (v1)

Understanding the Rule builder

The Rule builder is at the heart of the function builder and allows you to build exhaustive logic for your discount function.

With the Rule builder You can create rules that determine when discounts are applied to items in a customer's shopping cart. Each line in the cart is checked against these rules. If all conditions are met, the discount is applied.

How it Works:

  • You set up conditions in the Rule Builder.

  • Each line item in the cart is checked against these conditions.

  • If an item satisfies all the conditions, it gets the discount.

Note: If there are multiple discounts or limit on the lines , the order and way they are applied depend on the Discount Application Strategy and Line limit strategy you have configured.

We're moving from Rule engine v1 to v2 for powering more advanced logics and allow merchants to run better promotions than ever before.

Rule engine v1 will continue to remain as a legacy offering by Dollarlabs and maintained - but no new features will be prioritised for it anymore,

Let's understand this with an example ?

Example: Let's say you have a discount that applies if all the below conditions are met:

  • Condition 1: The cart subtotal must be greater than $100 (Cart sub total > $100).

  • Condition 2: The customer must be logged in (Customer logged in = true).

  • Condition 3: The product must be from a specific vendor, say "Vendor A" (Product Vendors = Vendor A).

Let's test our logic on a user's cart

Here's an example cart from a user that we'll test our logic on, assuming that the customer is logged in.

  • Item 1: Price = $50, Vendor = Vendor A

  • Item 2: Price = $60, Vendor = Vendor B

  • Item 3: Price = $30, Vendor = Vendor A

Finding 1 → The cart subtotal is $140 (which is greater than $100), and the customer is authenticated.

Finding 2 → The discount is applied to Item 1 and Item 3, but not to Item 2. This way, the rule ensures that only the eligible items get the discount based on the conditions set.


Walkthrough of the Rule builder UI

By default, when creating a function, you start with a discount with a single placeholder condition setup.

PreviousDiscount every item except the first itemNextIf X, then do Y

Last updated 2 months ago

The + OR button (1 - in the screenshot) allows you to combine multiple conditions, and the discount is applied on the product if ANY of the conditions within the condition are satisfied. ()

The + AND button (2 - in the screenshot) allows you to combine multiple conditions, and the discount is applied only if ALL the conditions satisfied ()

The Add discount button (3 - in the screenshot) enables you to create multiple discounts, each with its own set of rules that are defined using simple AND, OR logics. ()

💲
reference
reference
reference