Discount rules for Shopify, written without code.

Alfo runs your discount, validation, delivery, and payment rules as Shopify Functions and shows upsells in checkout. You set them up in the Shopify admin. They run at checkout.

Alfo - Discount Functions

Explore the functions

Pick a function to see what it changes.

01 / 08 · Discount Functions

Conditional Discount

Apply a discount when the cart, customer, or product meets your conditions.

Plan
Starter
Example
$5 off for first-time customers.
Read the docs

How it plays out

Discount functions

Four ways to discount.

Each function handles one discount pattern. The settings below come from its docs page.

  1. 01 / 04 Starter

    Conditional Discount

    Set the conditions, then set the discount that follows them. It covers product, order, and shipping discounts and reads the full set of 16 conditions.

    Example: 10% off orders over $100
    Condition
    cartSubtotal >= 100
    Target
    Order
    Discount
    10%
    Read the docs for Conditional Discount
  2. 02 / 04 Starter

    Buy X Get Y

    Count the items the customer buys, then discount the items they get. The discount lands on the cheapest eligible items first.

    Example: Buy 2 get 1 free
    buyQuantity
    2
    getQuantity
    1
    buyItemFilter
    all
    getDiscount
    100%
    Read the docs for Buy X Get Y
  3. 03 / 04 Pro

    Volume & Tiered Discount

    Set escalating thresholds on cart quantity, cart subtotal, or line quantity. Each cart, or each line for line quantity, gets the highest tier it reaches. Incremental tiers on the order subtotal add each tier to the one below.

    Example: Volume quantity discount
    Tier type
    cartQuantity
    2+ items
    10%
    5+ items
    20%
    10+ items
    30%
    Read the docs for Volume & Tiered Discount
  4. 04 / 04 Enterprise

    Bundle Discount

    Name every component the bundle needs. The discount applies once the cart holds all of them, and the scarcest component sets how many bundles count.

    Example: Complete outfit 25% off
    Component
    1x collection Tops
    Component
    1x collection Bottoms
    Component
    1x tag accessory
    Discount
    25%
    Read the docs for Bundle Discount

Rule builder

Rules you can read.

Combine conditions with AND and OR. Pick a scenario to watch a rule assemble.

VIP Members Only Product discount
Active
Customer tag has any of VIP
AND
Cart subtotal greater than $100
THEN
Apply 25% product discount
Winter Clearance Product discount
Active
Product tag has any of winter-2024
AND
Customer authenticated is true
AND
Cart quantity at least 2
THEN
Apply 30% product discount
Volume Discount Order discount
Active
Product tag has any of office-supplies
THEN
5+ items in cart 10% off
10+ items in cart 15% off
25+ items in cart 25% off
US Free Shipping Delivery
Active
Market is United States
AND
Cart subtotal greater than $50
THEN
Free Standard Shipping

Storefront and growth

After the discount.

Conditions

Check the cart or the line.

Filter the conditions by scope. Hover or focus a tile to see the fields it reads.

Show conditions by scope

Showing 16 of 16

Read the conditions reference

In numbers

What each number counts.

  1. 8 Shopify Functions

    4 Discount
    3 Checkout rules
    Bundle pricing
    Function types
  2. 16 conditions

    9 Cart-level
    7 Product-level
    Conditions reference
  3. 3 discount classes

    Product
    Order
    Shipping
    Discount classes
  4. 0 lines of code

    No-code rule builder
    Core capabilities

Pricing

Three plans.

A seven-day free trial on Starter and Pro.

Monthly Annual Save 15%

Starter

Conditional discounts and Buy X Get Y

$39 /mo

7-day free trial

Start free trial
Discount Functions
  • Conditional Discount
  • Buy X Get Y
  • Volume & Tiered Discount
  • Bundle Discount
Discount Configuration
  • All 3 discount classes
  • Automatic + code-based discounts
  • 16 conditions with AND/OR logic
  • 10 Rule groups per discount
Checkout Customization
  • Up to 5 Cart & Checkout Validation
  • Up to 5 Delivery customization
  • Up to 5 Payment customization
  • Checkout upsells
Storefront & Growth
  • Storefront Bundle Builder
  • Analytics dashboard
  • In-admin chat assistant
Advanced Features
  • Rejection rules
  • AI discount generation
  • AI discount explanations
  • Rule scheduling
  • Version history
Platform & Support
  • 7-day free trial
  • Works with all Shopify plans
  • No per-transaction fees

Pro

Most popular

Adds Volume & Tiered discounts, upsells, and analytics

$99 /mo

7-day free trial

Start free trial
Discount Functions
  • Conditional Discount
  • Buy X Get Y
  • Volume & Tiered Discount
  • Bundle Discount
Discount Configuration
  • All 3 discount classes
  • Automatic + code-based discounts
  • 16 conditions with AND/OR logic
  • 20 Rule groups per discount
Checkout Customization
  • Up to 10 Cart & Checkout Validation
  • Up to 10 Delivery customization
  • Up to 10 Payment customization
  • Up to 10 Checkout upsells
Storefront & Growth
  • Storefront Bundle Builder
  • Upsells Analytics dashboard
  • In-admin chat assistant
Advanced Features
  • Rejection rules
  • AI discount generation
  • AI discount explanations
  • Rule scheduling
  • Version history
Platform & Support
  • 7-day free trial
  • Works with all Shopify plans
  • No per-transaction fees

Enterprise

Adds bundle discounts and the bundle builder

$299 /mo

Get started
Discount Functions
  • Conditional Discount
  • Buy X Get Y
  • Volume & Tiered Discount
  • Bundle Discount
Discount Configuration
  • All 3 discount classes
  • Automatic + code-based discounts
  • 16 conditions with AND/OR logic
  • 40 Rule groups per discount
Checkout Customization
  • Up to 30 Cart & Checkout Validation
  • Up to 30 Delivery customization
  • Up to 30 Payment customization
  • Up to 30 Checkout upsells
Storefront & Growth
  • Storefront Bundle Builder
  • Full Analytics dashboard
  • In-admin chat assistant
Advanced Features
  • Rejection rules
  • AI discount generation
  • AI discount explanations
  • Rule scheduling
  • Version history
Platform & Support
  • 7-day free trial
  • Works with all Shopify plans
  • No per-transaction fees

Set up your first rule today.

Install on Shopify