Everything it takes to discount, and prove it at checkout.
Four discount types. A rules engine built on item quantity, cart value and variant inventory, with dates set in Discount period on your store timezone. A native offer card on the product page, a Shopify Function at checkout, your own AI assistant, and analytics that separate what is exact from what is approximate.
DISCOUNT TYPES
Four discount types, one engine
Match the discount to the promotion, not the other way around. All four ship on every plan, including the free one.
- Percentage off
- A percent off the products you target. The value is clamped between 0 and 100, so a mistyped number can never hand away more than the product is worth.
- Fixed amount off
- An amount in your store currency off each item. A $10 discount on a line of three takes off $30, so set the amount with that in mind.
- Buy X get Y
- Discounts a gift line already sitting in the cart. It runs with the storefront offer card, which renders the gift picker the shopper chooses from.
- Free shipping
- A delivery target discount, evaluated separately from your cart lines at the delivery stage, by the same Function that prices the rest of the cart.
Worked examples
What each type actually takes off
The same four types, priced. Each example ends in the amount checkout charges, because that is the only number a discount is finally judged on.
Type 01 / 04
Percentage off
A percent off the products you target, held between 0 and 100.
- Product
- Stoneware mug$50.00 x 2
- Rule
- 20% off, autumn collection
Before
$100.00
At checkout
$80.00
The same percentage in the admin, on the offer card and at checkout, so the promise and the charge cannot drift apart.
RULES ENGINE
The rules the native editor will not give you
Conditions you can actually express, combined the way you would read them out loud, and ordered so you always know which discount wins.
- Quantity
- A minimum item count, a maximum, or both, so an offer only fires on the basket size you meant it for.
- Cart value
- A minimum and a maximum cart subtotal, in your store currency, so "over $80" becomes a rule instead of a hope.
- Inventory
- A minimum and maximum stock level, judged per product variant and resolved on the server before checkout rather than read from the cart. Its row always joins with AND, because stock can only narrow a discount.
- Dates are not a condition
- A start date, an end date, or both live in the discount’s own Discount period, not in Conditions. Both bounds are inclusive, a one day window is legal, and it runs on your store timezone, which the admin names for you so a sale never opens a day early.
- AND and OR, top to bottom
- Conditions fold strictly top to bottom. There is no grouping and no hidden precedence to reason about, and the admin says so on screen while you build the rule.
- One discount per product for each kind of buyer
- The product picker will not offer a product another live or draft discount for the same buyers already covers, or gives away as a gift, so two discounts can never contest a line. A product can still have one offer for retail shoppers and another for B2B buyers. Archive one to free its products.
STOREFRONT OFFER CARD
The offer, on the page where people decide
A theme app extension you place from the theme editor. It reads the same record checkout reads, which is why the card and the price agree.
- Placed from the theme editor
- Drop it in as a theme block, move it where it belongs, and you are done. There is no theme code to fight and nothing to paste into a template.
- Server rendered Liquid
- The card carries no client side price logic. Nothing about the offer is decided in the shopper browser, and that is what keeps it honest.
- The whole offer, stated
- The discount, the conditions that unlock it, and the schedule it runs on, all on the product page instead of discovered at checkout.
- Gift picker for Buy X get Y
- When the offer hands out a gift, the card renders the picker, so the shopper chooses the item before the cart ever sees it.
- Fails open on purpose
- When the card is unsure, it shows. A card that appears too often is visible and fixable. A card that quietly vanishes just looks like a broken app.
- English and French
- The card speaks both, so the offer reads naturally wherever your market is.
CHECKOUT AND PRICING
One record, read by both sides
Every discount lives in a single product metafield, written only by the validated action inside xDiscount. The Function that prices the cart and the card that shows the deal both read it.
- A native Shopify Function
- Pricing runs inside Shopify, in its own discount pipeline, at the moment the cart is evaluated. It is not a script bolted onto your theme.
- Cart lines and delivery
- The Function prices product lines and delivery in the same pass, so a free shipping offer goes through the same engine as a percentage off.
- One source of truth
- The admin, the Function, and the storefront card all read one product metafield. There is no second copy to drift out of date.
- Nothing is written by the browser
- A shopper device can never influence the price they pay, because no part of that price is decided there.
- Fails closed, deliberately
- An unknown rule, a malformed record, or a condition it cannot evaluate produces no discount at all. A wrong discount costs you money on every order it touches.
- No checkout hacks
- No scripts injected into your theme, no cart rewriting, and nothing that breaks the next time you update your theme.
The mechanism
The record both sides read
The Function that prices the cart and the card on the product page are reading the same product metafield. Trace either one back and it ends in the same place.
Flow diagram. The xDiscount admin sets a rule. xDiscount's own validated action is the only writer, and it writes one product metafield per product. Two readers read that same record: the Shopify Function, which prices the cart at checkout and fails closed, so an unknown rule produces no discount and the shopper is charged full price; and the storefront offer card, which shows the deal on the product page and fails open, so it stays visible rather than vanishing. Nothing is written by the browser.
Select a step to trace it through the diagram
Every discount for a product lives in a single product metafield. There is no second copy of the price to fall out of step with the first.
Only xDiscount's own validated action writes that record, whether the change comes from the admin or from a connected assistant. Nothing is written by the browser.
A Shopify Function prices cart lines and delivery inside Shopify's own pipeline. It fails closed: an unknown rule or a malformed record produces no discount, because a wrong discount costs money on every order.
The storefront offer card is server-rendered Liquid with no client-side price logic. It fails open: it would rather show than vanish, because a card that shows too often is visible and fixable, while a hidden one just looks broken.
On the product page
was $60.00$48.0020% off
The offer card renders the deal and its conditions in plain words from the record.
The record
One product metafield, written only by a validated action.
At checkout
$48.00
The Shopify Function prices the cart from that same record.
Because both sides read the same record, what a shopper is shown and what a shopper is charged cannot drift apart. Nothing is written by the browser, so a shopper's device can never influence the price they pay.
CONNECT AI
Bring the assistant you already use
Connect Claude, ChatGPT, or any tool that supports connectors, through a connection URL unique to your store, approved in your own Shopify admin with a visible expiry.
- No subscription to buy
- There is no AI plan to add and no provider key stored here. Whatever you pay your AI provider stays between you and them. Connect AI is on every plan, Free included.
- Typed tools only
- The assistant never writes a metafield directly. Every write goes through the same validated action the admin UI uses.
- Draft first, enforced in the backend
- Anything an assistant creates is forced to draft at the model layer, not in the UI, so no tool can talk its way around it. A live discount must be unpublished before it can be edited.
- Confirmation on the sharp edges
- Publish, unpublish, and delete are flagged confirmation required, so clients that support prompts ask you before anything moves.
- The whole toolset
- Read discounts, create, update, set rules, add and remove targets, publish, unpublish, archive, delete, read performance, and update settings.
- Revoked on uninstall
- Uninstalling xDiscount deregisters every connection, so nothing keeps access to a store you have left.
ANALYTICS
Prove what the promotion did
Two sources, kept apart on purpose. A storefront pixel measures behaviour, and the Shopify signed order webhook is the only thing that can move a money number.
- Four tiles, fixed
- Discounted revenue, discounted orders, average order value and conversion rate, always in that order. There are no cards to arrange, and hovering a tile tells you where its number comes from.
- A chart and a filter
- Plot any one of the four over your chosen range, narrow it to storefront or Shopify metrics, or filter the whole page down to a single discount type.
- A consent aware web pixel
- The storefront funnel, views, offers seen, and carts, measured with zero shopper identifiers and never used for advertising.
- Exact where it counts
- Discounted orders and discounted revenue come from the Shopify signed order webhook and are exact. Discounted orders is the number your plan meters, and only a signed order can move it, so a forged request can never bill you.
- A day by day table
- The same range broken out per day underneath the chart, with history reaching back 250 days, so a spike has a date rather than just a shape.
- Roadmap: an events explorer
- A deeper analytics screen with a full events explorer is on the roadmap, so you will be able to open the raw funnel event by event.
HIGHLIGHTS
Everything in one app
Collections, codes, spend-based savings, badges, Shopify POS and B2B: all part of xDiscount from the day you install it.
- Collections and all products
- Point a discount at specific products, whole collections or every product in your store. An item still gets only one item discount, and a store setting decides which one wins: the biggest discount, which is the default, the product's own discount first, or your own priority order. The admin warns you when two discounts reach the same product.
- Discount codes
- Turn a discount into a code shoppers enter at checkout: one code, or up to 100,000 generated codes per discount with a CSV download. Set a usage limit, or one use per customer. Codes are never shown on the product page, and a Buy X get Y cannot be a code.
- Spend more, save more
- Cart spend discounts take a percentage or a fixed amount off the whole order, in one to five steps. By default they leave out items that already have a discount, and an option lets them apply on top. The spend is measured after item discounts, and Shopify applies the combination that saves the shopper the most. One can be active on any given day, so you schedule the next one ahead.
- Cart progress bar and automatic gift
- A bar in your theme tells shoppers how much more to spend for your next offer, such as Spend $40.00 more to get 10% off your order. A gift that is 100% free can go into the cart by itself, on a discount for specific products, collections or all products, comes back out if the cart stops qualifying, and is never added again once the shopper removes it. The offer card tells shoppers the gift is added automatically.
- Discount badges
- A label such as 20% off on product images on collection and search pages, designed in Settings with a live preview: five styles, four corners, three sizes, your colours and your own wording, such as Save {value}. A badge moves aside for your theme's own label, and gift cards and subscription-only products never get one.
- One offer per product page
- By default the product page shows a single offer, chosen from four kinds in the order you set: item discount, gift, cart spend and free shipping. Volume steps open in a Buy more, save more table, and the price after the discount matches what checkout charges.
- Twenty storefront languages
- The offer card, the badges and the cart bar show in English and in the 20 languages of the Shopify admin, from Czech and German to Japanese and Vietnamese, with nothing to switch on. Wording you type yourself shows exactly as you typed it.
- Shopify POS
- Percentage and fixed amount discounts, volume steps, cart spend discounts and codes apply at the Shopify POS checkout too, automatic discounts at POS Pro locations. A tile on the register's home screen tells staff which offers the cart gets and what it is close to. Gifts, the offer card, the badges and the cart bar stay online.
- Checkout label and discount checker
- Choose the words shoppers read beside the discount at checkout, up to 50 characters. Then test any cart with the discount checker, which runs checkout's own code and shows which discount each item gets and why the others do not, at a company location's own prices when you check as a B2B buyer.
- Who can get each offer
- Keep an offer for some shoppers: customers tagged VIP, logged-in customers, first orders, a lifetime spend, some countries, retail shoppers or B2B buyers, chosen companies and how long a company has been a customer, online or in store. The same product can have one offer for retail shoppers and another for B2B buyers. The offer card, the badges and the cart bar show an offer only to shoppers who can get it, and checkout follows the same rules.
- Leave products out
- A collection or all-products discount, a cart spend discount included, can leave out up to 50 products and 10 collections. A left-out product gets no tile, no badge and no bar message for that discount, and checkout leaves it out too.
- Volume steps your way
- Count items toward volume steps all together, per product or per variant, as Shopify's own volume pricing counts, so 3 blue mugs can reach 15% while a red mug beside them pays full price.
- Results by discount
- A By discount table on Analytics lists each discount's discounted orders, amount given and order totals, exact sums of Shopify's own orders, sorted by any column and exported as CSV. A connected assistant reads the same rows.
- Cart bar designer
- Design the cart progress bar in Settings: Card, Strip, Pill, Minimal or Milestones, the line thickness, the alignment, an icon, your colours and your wording, with a live preview. Milestones shows each step of the offer under the line.
- Simpler settings
- Each setting leads with the choice your store follows, marked Recommended while it is the one every store starts with, and folds the other choices away until you want them.
- Discounts that work together
- Gifts and free shipping never take an item's discount, so a cart that reaches a free shipping minimum keeps its item discounts. Or set a gift offer to give the gift or the item discounts, whichever saves the shopper more. A product belongs to one discount for each kind of buyer, and xDiscount refuses a save that would put it in two for the same buyers. A warning tells you when two discounts share a name.
- Connect AI keeps up
- A connected assistant can set who can get an offer, what it leaves out, how volume steps count and the automatic gift, and reads your results by discount. Company rules stay in the app. Still fourteen tools.