How the engine decides
Every time the cart changes, Demo Store makes one priced decision in a single pass. These are the steps.
Cart and shopper facts
Items, quantities, prices and costs, plus who the shopper is: new or returning, loyalty tier, account type, country and time of day.
Eligibility
Each deal is checked against its audience, schedule, limits and conditions. A deal that does not fit is held back with a named reason.
Promotion kernel
The deals that fit are priced in priority order: buy X get Y, quantity tiers, bundles, spend rewards and price lists. Each item is used once, so deals never count twice.
Margin and Revenue Guard
The result is checked against product costs and the store's margin floor. A deal that would cut too deep is held back before the shopper sees it.
Decision record
Applied deals, held deals with their reasons, the next tier to unlock and the margin verdict go into one record. Cart, checkout, e-mails and analytics all read the same record.
Intelligence over time
Orders feed customer profiles: lifetime value, loyalty tiers, streaks and segments. The next decision uses what the store has learned.
Shoppers never type a code. Store owners set a deal once, or install one of 250 ready-made packs for their industry.