💲
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
  • Key to Conditions
  • Key to Types
  • Rule Options
  1. Dollarlabs: Ultimate Discounts
  2. Discount Engine (v1)

Rule Builder Variables

The variables in the Dollar Discounts rule engine are essential for creating robust discounts by combining them using simple AND & OR conditions. Below is an explanation of the key types and conditions, followed by a table of rule options.


Key to Conditions

  • Equal (EQ): The value must be exactly equal.

  • Not Equal (NQ): The value must not be equal.

  • Starts With (SW): The value must start with the specified text.

  • Ends With (EW): The value must end with the specified text.

  • Greater Than (GT): The value must be greater than the specified amount.

  • Lesser Than (LT): The value must be less than the specified amount.

  • Divisible By (DB): The value must be divisible by the specified amount.

  • Matching ONE of (CO): The list must contain at least one of the specified values.

  • Matching ALL of (CA): The list must contain all the specified values.

  • Not matching (NC): The list must not contain any of the specified values.


Key to Types

  • Currency: Refers to money-related values, typically involving price or cost. Always defined in store currency.

  • Number: Refers to numerical values, such as quantities or counts.

  • String: Refers to text values.

  • Array: Refers to a collection of values, such as lists of IDs, tags, or locations.

  • Boolean: Refers to true/false values, indicating binary states such as authenticated or not authenticated.


Rule Options

Cart Rules

Rule Option
Type
Conditions
Description

Cart Attribute

String

EQ, NQ, SW, EW

An attribute of the cart

Cart subtotal

Currency

EQ, LT, GT

The subtotal value of the cart

Cart Quantity

Number

EQ, LT, GT, DB

The quantity of items in the cart

Cart Market

Array

CO, NC

The market associated with the cart

Cart Has Product

Array

CO, NC, CA

Whether the cart has specific products

Cart Has Variant

Array

CO, NC, CA

Whether the cart has specific variants

Customer Rules

Rule Option
Type
Conditions
Description

Customer logged in

Boolean

EQ

Whether the customer is authenticated

Customer is B2B

Boolean

EQ

Whether the customer is a business

Customer Spent

Currency

EQ, LT, GT

The total amount spent by the customer

Orders Count

Number

EQ, LT, GT, DB

The number of orders placed by the customer

Customer ID

Array

CO, NC

The IDs associated with the customer

Customer Tags

Array

CO, CA, NC

The tags associated with the customer

Customer Company

Array

CO, NC

The company ID associated with the customer

Line Item Rules

Rule Option
Type
Conditions
Description

Line Attribute

String

EQ, NQ, SW, EW

An attribute of the line item

Line Quantity

Number

EQ, LT, GT, DB

The quantity of the line item

Line Subtotal

Currency

EQ, LT, GT

The total cost of the cart line item (price x quantity)

Variant ID

Array

CO, NC

The variant IDs associated with the line item

Product ID

Array

CO, NC

Shopify Product ID of the item in the user's cart

Product Tag

Array

CO, CA, NC

Product tag of the item as set up in the admin UI.

Product Collection

Array

CO, CA, NC

The collections associated with the line item

Selling Plan Allocation

Boolean

EQ

Whether the line item has a selling plan

PreviousDiscount combinationsNextInvert Logical Operation

Last updated 2 months ago

💲