Introduction

What is Alfo - Discount Functions?

Alfo - Discount Functions is a Shopify app. You build discount rules in Shopify Admin with a no-code rule builder, and Shopify Functions run them at checkout as WebAssembly modules. This gives you fast, reliable discounts with no custom code required.

Why Does It Exist?

Shopify Scripts (the Ruby-based Script Editor) were deprecated on August 28, 2025 and will be fully removed on June 30, 2026. Alfo is the modern replacement, built on the Shopify Discount Function API. It gives you everything Scripts could do and more, using Shopify’s current architecture for discount extensibility.

Core Capabilities

CapabilityWhat it doesPlan
No-code rule builderDesign discount logic with a visual interface. No programming required.All plans
Four discount functionsConditional, Tiered, Buy X Get Y, and Bundle, each built for a specific discount pattern.Varies by function
Payment customizationHide, rename, reorder payment methods, set payment terms, or require order review based on cart and customer conditions.All plans
Delivery customizationHide, rename, or reorder delivery options based on cart, customer, product, and address conditions.All plans
Cart & checkout validationBlock or warn buyers at checkout based on cart, customer, product, and delivery-address conditions. Rules are managed inside Shopify’s native Checkout settings.All plans
Checkout upsellsOffer pre-purchase products inside Shopify Checkout with one-click Add to order.Pro+
Storefront bundle builderA multi-step bundle wizard rendered as a theme block, with server-side catalog pricing.Enterprise
Merchant analytics dashboardRevenue tracking, top-rule leaderboards, and daily trends for upsells and bundles.Pro+
In-admin AI chat assistantFree, plan-aware Q&A helper on every Alfo screen. Chat history stays in your browser; Alfo keeps no server-side copy.All plans
Three discount classesApply discounts to Products, Orders, or Shipping.All plans
16 conditions with AND/OR logicBuild precise targeting rules using cart-level and product-level conditions.All plans
Composable rules with configurable strategiesCombine multiple rule groups within a single discount function and control how they interact.All plans
AI-powered configurationGenerate, update, and explain discount configs with natural language.Explain: free on all plans. Generate: Pro+
Rule schedulingSet date-based activation windows on rule groups for seasonal sales and flash promotions.Pro+
Native Shopify integrationConfigure everything inside Shopify Admin through Admin UI Extensions. No external dashboards.All plans
Automatic and Code-based discountsSupport for both discount types across all four functions.All plans

Function Types at a Glance

TypeTriggerApplies ToDiscount ClassesPlan
ConditionalConditions metTargeted items / order / shippingProduct, Order, ShippingStarter+
TieredThreshold reachedSame, scales with tierProduct, Order, ShippingPro+
Buy X Get YBuy quantity met”Get” items onlyProduct, ShippingStarter+
BundleAll components presentBundle itemsProduct, ShippingEnterprise

Checkout Customization

Beyond discounts, Alfo provides four additional Shopify Functions and extensions that control the checkout experience:

TypeActionsConditionsPlan
Cart & Checkout ValidationBlock, WarnCart + Product + Delivery conditionsAll plans
Payment CustomizationHide, Rename, Move, Payment Terms, Order ReviewCart + Product conditionsAll plans
Delivery CustomizationHide, Rename, MoveCart + Product + Delivery address conditionsAll plans
Checkout UpsellsOffer variants at a chosen stepCart + Customer conditionsPro+

These functions control who completes checkout, how payment and delivery options are presented, and what offers buyers see along the way. All of them run on the same condition-based rule system as your discount functions.

Grow Beyond Discounts

Alfo also ships three features that extend past the rule builder itself:

FeatureWhat it does
Bundle BuilderEnterprise-only storefront wizard that walks shoppers through assembling a bundle one component at a time, rendered as an Online Store 2.0 theme block with server-side catalog pricing.
Analytics DashboardPro+ revenue tracking for checkout upsells and storefront bundles, with daily trend charts and top-rule leaderboards. Pro shows the Upsells tab; Enterprise adds the Bundles tab.
Chat AssistantFree plan-aware Q&A popup available on every Alfo page. Ask questions about your setup, have the assistant explain a rule, or drop a suggested prompt straight into the AI Assistant composer. Chat history stays in your browser, and nothing is stored on Alfo’s servers.

Who Is This For?

Alfo is built for Shopify merchants who need discount logic and checkout customization that goes beyond Shopify’s native capabilities. Merchants use Alfo to replace Shopify Scripts or to build new promotions.

Next Steps