Magento Open Source price rules and promotions

Plan catalog price rules, cart price rules and coupon codes for campaigns on a self-hosted Magento Open Source store, and see which audience targeting and scheduled staging needs you must build or buy.

On this page

Magento Open Source price rules and promotions: what your team is taking on

A merchandising or marketing team that needs campaigns live on a self-hosted store is really asking for two things: discounts that apply correctly across the catalog and cart, and a way to launch and retire them without breaking checkout. Magento Open Source covers the core of this with catalog price rules for discounts applied to products before they reach the cart, and cart price rules for discounts that depend on the basket, such as a percentage off once a threshold is met, free shipping or a coupon code. Teams usually implement these when a store moves past one-off sales and needs repeatable seasonal offers, loyalty pricing or partner codes. The work is less about the rule screens than about deciding which rule type owns each promotion, how coupons are generated and distributed, and what priority and stop-further-processing settings do when several rules match the same product.

The edition does not include the audience targeting and staging features that Adobe Commerce adds on top. Customer segments, which let you aim a rule at a defined group of shoppers, and scheduled staging, which lets you build and preview a set of promotions before publishing them on a timeline, are Adobe Commerce capabilities. Open source stores can still run time-bound campaigns using the from and to dates on each rule, but teams that need a segment-based offer or a reviewed promotional calendar must plan a workaround or a custom module. Before scoping, confirm the exact feature list for your release line against Adobe's documentation, and confirm with your marketing team which campaigns they expect to run in the first year.

Plan testing as part of the build, not as a launch-day check. Rules interact with indexers, cache and the customer group and website assignments on each rule, so a discount that looks correct in the admin can behave differently for a logged-in customer in another store view. Your team should agree a test matrix covering each rule type, each customer group, coupon single-use and usage limits, and overlapping rules with different priorities. Ask your implementation partner for a written test plan, a staging environment that mirrors production configuration, and a rollback step for any rule that over-discounts. Those items are what determine how much effort the campaign calendar will cost to maintain after launch.

What the core promotion modules do in Magento Open Source

Magento Open Source ships the core promotion features that most campaigns start from. The cards below cover the parts that interact: catalog price rules, cart price rules, coupon codes, priority and discount handling. Read them together, because a rule that looks correct alone can change the price a shopper sees once another rule applies.

Catalog price rules

Catalog price rules change the price of matching products before they reach the cart, based on category, product attributes, customer group, website and date range. They are indexed, so their effect appears on listing and product pages. Check which customer groups and websites each rule covers, and confirm the indexers that rebuild catalog rule prices run on schedule after you save changes. Test the storefront price, not only the rule grid.

magento2 repository

Cart price rules

Cart price rules apply discounts at the cart and checkout level, based on subtotal, item quantities, shipping method, customer group and coupon use. They are evaluated when totals are calculated, so they can stack with catalog price rules in ways that depend on the discount settings. Confirm how each rule behaves with shipping discounts and with products that already carry a catalog discount before you launch.

Coupon codes and usage limits

A cart price rule can require a specific coupon code, or generate many unique codes for a single campaign. Usage limits apply per coupon and per customer, and they are the main control against code sharing and abuse. Confirm the generated code format, the total use limit and the per-customer limit before distributing codes, and test that a used code is rejected on a second order.

Rule priority and stacking

When several rules match the same product or cart, priority numbers and the discard-subsequent-rules setting decide which discounts apply. Lower numbers run first in Magento's rule processing. Map every active rule for a campaign on one sheet with its priority, customer group and stacking behavior, then test the combinations shoppers are most likely to hit. Confirm exact labels and option names in the admin of the version you install.

Audience and scheduling limits

The open source edition does not include the audience segmentation and scheduled staging features that Adobe Commerce adds for promotions. Plan campaigns around customer groups, date ranges and manual activation, and decide in advance who will switch rules on and off. Confirm the current capability list against Adobe's documentation for your version, because edition feature sets change between releases.

Adobe developer docs

Source and version checks

The behavior described here comes from the magento/magento2 source and Adobe's developer documentation, and menu labels can differ between releases. Before you build, confirm the admin menu names, field labels and rule options on the exact Magento Open Source version you will run, and record them in your test plan. Any extension that changes pricing or cart totals must be checked against the same rules.

Which rule type and coupon setup fits each campaign

This table compares catalog price rules, cart price rules with and without coupon codes, and the stacking settings that decide which discount wins. Read each row as a campaign type, then check the trade-off in reporting and checkout behavior before you pick the setup for that campaign.

OptionWhen it fitsTrade-off in reporting or checkout
Catalog price rule (auto-applied)Sitewide sales, category-wide markdowns and seasonal price drops that should show on product and listing pagesDiscount is applied before the cart, so shoppers see it everywhere, but order-level reporting shows a reduced price rather than a named promotion
Cart price rule, auto-appliedBasket thresholds such as free shipping above a set subtotal, or buy-more-save-more offersApplies at checkout only, so the discount can appear or disappear as the basket changes, which needs clear cart messaging
Cart price rule with a single coupon codeEmail or social campaigns where one shared code tracks response to a specific channelAnyone with the code can use it unless usage limits are set; reporting ties redemptions to one code
Cart price rule with generated or unique codesPartner codes, win-back emails and influencer programs that need per-recipient trackingRequires code generation and a plan for expiry and reconciliation; redemption counts are only as clean as the code pool
Partner or affiliate codesSharing a code with a reseller or partner who sends traffic on your behalfUsage limits and customer-group restrictions must be confirmed, since a public code can leak beyond the intended audience
Discard subsequent rules (stop further processing)Protecting a higher-value offer from being combined with a later, broader ruleCan silently block a rule a campaign team expects to stack, so test each combination in staging
Priority and sort orderDeciding which of several overlapping rules applies first when they target the same products or basketsLower numbers run first in Magento admin; reorder rules during test runs because overlaps are easy to miss in a long list
Combined catalog and cart rulesLayered campaigns such as a sitewide percentage plus a basket thresholdStacking depends on settings and order of processing; confirm the final price on product, cart and order pages before launch

How a promotion moves from brief to live store

This sequence takes a marketing brief through rule design, a supported test environment, staged checks of stacking and exclusions, and launch with monitoring, so each promotion goes live with evidence behind it.

  1. Inventory the campaigns and their goals

    Marketing, merchandising and finance list every planned promotion with its goal, audience, product scope, start and end dates, discount type and whether it must combine with other offers. The team also records which promotions cannot run together and which must never touch sale-priced items. Ask marketing to name one owner per campaign. This step is done when the campaign inventory is signed off by all three groups and every promotion has a stated goal and an owner.

  2. Design the rule matrix and priority map

    A consultant or the internal platform lead translates each campaign into catalog price rules or cart price rules, coupon codes and any free-shipping or customer-group conditions. They assign a priority to every rule, then map which rules may apply together, which discard others and what happens when two rules compete for the same product. Use a worked example with a few sample carts to confirm the logic before any configuration starts. The output is a signed rule matrix that lists each rule, its conditions, actions, priority, stacking flag and exclusions.

  3. Set up a test store on the supported stack

    Build a non-production environment that matches production: the PHP version, database, search engine, cache and web server combinations that Adobe lists for the Magento Open Source release in use. Confirm the release against Adobe's released versions and system requirements, since Adobe supports only the listed combinations. Load a copy of the catalog, customer groups and tax settings so prices and totals reflect real data. The step closes when a smoke test passes on the test store and the version and stack are recorded in the test plan.

  4. Verify indexers and cache behavior

    Confirm that catalog rule and cart rule indexers are valid and that scheduled reindexing runs after rule changes, because catalog price rules depend on indexes before storefront prices update. Flush or refresh the relevant caches, then check a product page, category listing and cart on a clean browser session and on a session with an existing cart. If a full-page cache layer such as Varnish sits in front of the store, confirm that promotional prices and coupon messages are not served stale. The output is an indexer and cache check log with timestamps and pass results.

  5. Test stacking and exclusions in stages

    Work through the rule matrix case by case: single rules, pairs of rules that should combine, pairs that should not, coupon codes with usage limits, and carts that include excluded products or sale items. Test in stages, starting with catalog rules alone, then cart rules, then checkout totals including tax, shipping and discounts on refunds or cancellations. Record the expected and actual price for each case. Any mismatch goes back to the rule matrix before retesting. The step closes with a test evidence log where every row in the matrix has a passing result.

  6. Launch and monitor the campaign

    Schedule the rule activation dates, confirm they match the signed matrix, and run a final pre-launch check on production after the last configuration change. At go-live, the team watches order totals, coupon redemption counts, failed checkouts and support tickets about prices. Keep a rollback plan that disables the affected rules and clears the relevant caches. The step closes when the campaign has run through its first reporting window with no unexplained discounts and the monitoring findings are filed against the evidence log.

What the open source edition lacks for audience targeting and scheduled staging

Audience targeting and scheduled staging are the two promotion capabilities that shape campaign design most, and Adobe presents both as Adobe Commerce capabilities rather than core Magento Open Source features. Before you design a campaign calendar, confirm in writing with Adobe which segment and staging features the open source edition includes in the release you plan to run. Do not assume that a feature visible in Adobe Commerce documentation is available in your edition.

Three options follow from that gap. The first is to stay on the core model: customer groups on catalog and cart price rules, with the from and to date fields set by hand for each campaign. This costs internal time for every launch and leaves the go-live and end-date steps to human checks. The second is a custom module that adds segment logic or scheduling, built to the documented structure of registration, module declaration and PSR-4 autoloading. This moves cost into development and into retesting at every patch cycle, because Adobe's upgrade guide ties effort to customizations and extension count. The third is moving to Adobe Commerce, where licensing and implementation are priced by Adobe and its partners, so request that quote separately.

Choose the option before the promotion calendar is locked, because a custom module changes the data model, test plan and upgrade budget. Ask for Adobe's current feature comparison for your target release and record which rule types, customer segment controls and staging behavior are included. Then build a staging copy of the store and run each campaign's rule sequence there, checking overlaps, coupon limits and end-date behavior before anything reaches production. Adobe's PHP development overview is the starting point for any module you decide to build.

What drives the effort and cost of promotion work

This table lists the factors that change how much design, build and test work a Magento Open Source promotion program needs. Read each row as a driver: what raises effort, how to keep it contained, and what to ask for in a written quote before work starts.

DriverWhy it changes effortWhat to ask for in a quote
Number of concurrent campaignsEach overlapping campaign adds rules, priorities and test cases. Effort grows faster than the campaign count because every pair of campaigns can interact.A list of the campaign types expected per quarter and the maximum number live at once, with the test matrix tied to that number.
Rule stacking complexityDiscard subsequent rules, coupon combinations and catalog-to-cart interaction determine how many outcomes must be verified. Stacking rules across categories and customer groups multiplies the cases.A written rule inventory showing which rules may combine, which must stop further processing, and who signs off the stacking matrix.
Custom discount logicAnything beyond the native action types, such as tiered bundles, loyalty points or quantity-based pricing outside the admin, means custom code in a module that must be maintained through upgrades.Whether the discount logic is native or custom, the module it lives in, and the upgrade and regression tests included in scope.
ERP or order-management pricing syncIf the ERP owns list prices or contract prices, the store must mirror them through imports or APIs, and mismatches create refunds and disputes. Sync timing affects when promotions take effect.The source of truth for each price, the sync direction and frequency, the reconciliation report, and who handles mismatched orders.
Customer group and segment rulesCustomer group rules are native, but audience targeting beyond groups is not part of the open source edition. Each added segment needs a data source, a mapping and extra tests.The exact audience definitions, where the attribute data comes from, and whether any segment requires custom attributes or an external service.
Test coverage and stagingPre-launch testing covers rule outcomes across products, carts, currencies, tax settings and checkout paths. Without a staging copy with production-like data, defects surface after launch.The test scenarios included, the staging environment used, whether test data is anonymized, and the evidence delivered before each campaign goes live.
Upgrade and patch cyclesPromotion modules and custom discount code must be re-tested on each 2.4.x patch or minor move. Heavy customization increases this regression effort.Whether the quote includes regression tests for promotions during upgrades, and how the Upgrade Compatibility Tool results are handled.

How promotions connect to the rest of the store

A promotion is only as correct as the systems that price, cache and total it. The cards below cover the components a rule touches before a shopper sees a discounted price, and the checks that catch a mismatch before launch.

Tax configuration applied to discounted prices

Cart price rules and catalog rules change the amount that tax is calculated on, and the order in which discounts and tax apply depends on the tax settings you chose. Check how price display including or excluding tax interacts with each rule, and confirm the result for a sample order in every tax zone you sell into before the campaign starts. Tax setup is covered in the tax configuration page for this module.

Catalog and product type behavior

Catalog price rules apply to simple and configurable products differently, and bundle, grouped and downloadable products each have their own price logic. A rule that looks correct on a simple product can produce an unexpected price on a configurable child or a bundle. Test a representative product from every type you sell, including products with special prices already set.

Indexers that serve catalog prices

Catalog price rules are materialized by indexers, so a saved rule does not reach the storefront until the relevant indexer has run. Confirm how your store runs indexing on schedule, and check the indexer status in the admin after each rule change. A stale index is the most common reason a campaign appears to start late or end early.

Full-page cache and Varnish

On self-managed installations Adobe documents Varnish as the full-page cache accelerator, and cached pages can keep showing an old price after a rule changes. Decide which cache types and cache invalidation steps follow a promotion change, and rehearse them on a staging copy. Cloud-hosted Adobe Commerce uses Fastly instead, so the steps differ for that platform.

ERP or PIM as the list price source

If an ERP or PIM owns list prices, a discount in Magento is applied on top of a number the store did not create. Agree which system is the source of record, how price updates flow in, and whether a catalog rule can be overwritten by an import. Document what happens when the ERP sends a new base price during an active promotion.

Payment and checkout for discounted totals

Payment integrations receive the grand total after discounts, so rounding, zero-value orders and partial discounts must be checked end to end. Confirm that the payment method you use accepts the discounted amount, that refunds and captures match the discounted totals, and that reconciliation with your accounting system uses the same figures.

Questions buyers ask before building promotions

What drives the cost of building promotions on Magento Open Source?

The cost depends on how many promotion types the campaigns need, how far they reach beyond core catalog price rules and cart price rules, and how many people must approve pricing. The main components are discovery of the current pricing logic, configuring rules and coupons, custom code for anything the core cannot express, testing across customer groups and websites, and handover. Ask for the quote to list each component separately, state which items are one-time and which recur, and name who maintains the rules after launch. A fixed-scope quote follows from a written list of campaign types and integrations.

How long does a promotions build usually take?

Duration depends on scope rather than on a single standard figure. A small set of catalog and cart rules with coupon codes takes less time than a build that adds custom discount logic, ERP pricing feeds, or tested campaign calendars across several stores. Agree on the list of campaigns, the pricing owners and the test cases before work starts, since those inputs set the schedule. DeployOpen agrees timelines in writing as part of each fixed-scope engagement.

What must our internal team supply before the work starts?

Your team needs to supply a campaign calendar with start and end dates, named pricing owners who approve discounts and margin floors, and test accounts for each customer group and website. Also provide the current price list or ERP export that the rules must match, a list of coupon formats and stacking rules, and the tax and shipping behavior that affects the final price shown at checkout. Missing inputs usually surface as rework during testing, so confirm them before scoping.

Can a merchandising team run price rules alone after handover?

Yes, for routine work such as creating a catalog price rule, setting a date range, or issuing a cart coupon, provided the admin roles are scoped and the team has a written rule naming convention and priority order. Changes that alter how rules interact, such as new discount types, stacking behavior or rules tied to external data, usually need an engineer to review them first. Ask for a handover session with a test checklist, and confirm which admin roles can edit rules in production.

How do Magento upgrades affect existing price rules and coupons?

Core rule data is normally kept through an upgrade, but custom discount logic, extensions and theme code that display prices are where breakage tends to appear. Adobe's upgrade guide names customizations, extension count, third-party integrations and coding practices as drivers of upgrade effort, and it recommends upgrading every patch cycle. Before each upgrade, rerun your promotion test cases on a staging copy, including checkout totals, coupon redemption and cart rules with free shipping. Use Adobe's Upgrade Compatibility Tool to check custom code.

Do scheduled or segment-based promotions need custom work?

Date-limited catalog and cart rules are supported in the core, so a campaign with a start and end date does not need custom code. Audience targeting is different. Open Source limits rules by customer group and website, and it does not include the segment-based targeting or scheduled staging that some commercial editions provide. Confirm this against the current Adobe documentation for your version. Targeting by loyalty tier, purchase history or region usually requires custom modules or a verified extension, and that work should be scoped and tested like any other module change.

How do we test promotions before a campaign goes live?

Test on a staging copy that matches production data, catalog and configuration. Build a matrix of test carts covering each customer group, each website, coupon stacking, rule priority order, tax and shipping settings, and rules that overlap in date. Compare the expected discount with the checkout total and the order record. Repeat the matrix after any change to rules, extensions or the theme. Keep the results as evidence so the pricing owner can approve the launch in writing.

Who is responsible for rule conflicts and pricing errors?

Responsibility is shared, and the scope document should say who owns each part. Pricing owners decide the discount and margin rules. The build team is responsible for configuring rules to match that decision and for testing the stated cases. Your operations team owns production changes after handover. Ask the provider to document rule priorities and known limits, and to agree a rollback step for a bad campaign before it launches.

How a promotion is evaluated at checkout

A shopper's cart or catalog view starts at the page cache. On a cache miss, the storefront reads prices from the price index, which holds the results of catalog price rules. Cart price rules then check any coupon code, and matching rules are ordered by priority and stacking settings before tax is applied to the discounted subtotal. The reindex and cache flush steps are the refresh points: they must run after a rule changes, or shoppers may see stale prices. Confirm the exact refresh behavior for your indexers and cache setup in staging before launch.

Promotion evaluation from cache to final totals, with refresh points.

How to test promotions before launch

Test promotions as a set, not one rule at a time. Build a test matrix that covers rule priority conflicts first: when a catalog price rule and a cart price rule both apply to the same product, confirm which discount wins, whether the Discard subsequent rules setting stops later rules as intended, and whether the sort order you configured matches what the storefront actually shows. Then test stacking: apply each active catalog rule, a cart rule, a coupon and any other discount the store offers, and record the final price at the cart, at checkout and on the order. Include the coupon usage limits (total uses and uses per customer) and try to exceed them with a second account and a guest session.

Scope and cart edge cases need the same discipline. For each rule, test every customer group and store view it targets, plus one group and one store view it should not reach, because a rule scoped to the wrong website will look correct in the admin grid. Test the cart thresholds that drive shipping and totals: a free shipping threshold placed just below, exactly at and just above the limit, with and without discounted items, with a multi-quantity line, and with a removed item that drops the cart under the threshold. Check rounding on tax-inclusive prices and confirm that a discounted order still reconciles in invoices and reports. Run the same scenarios on the payment and shipping methods you will launch with, because some integrations recalculate totals differently.

Finish with a copy of the production configuration. Clone the production database and media into a staging environment with the same Magento Open Source version, extensions and indexer settings, then import the planned rules and coupons there so the test reflects what will go live. Keep a written test script with expected results for each case, record the actual results, and require a named owner from marketing and one from operations to sign off before the rules are enabled in production. Ask your partner or internal team to confirm how the rule and coupon data is copied, since production and staging must match for the results to mean anything.

How DeployOpen works on this

DeployOpen plans, builds, tests and documents Magento Open Source price rules and promotions inside your own infrastructure, with the work agreed in writing before it starts. The arc runs from a written scope, through configured and tested rules, to a documented handover and an optional support retainer.

How we scope

  • Inventory of planned campaigns, discount types, customer groups and stacking rules agreed before any rule is configured
  • Written list of what the open source edition covers and what audience or scheduled staging needs a different approach
  • Named owners for rule priorities, coupon issuance and campaign sign-off, with the scope and deliverables fixed in writing

How we build

  • Catalog price rules and cart price rules configured per campaign, with priority and discard-subsequent-rules settings documented
  • Coupon code sets generated and checked against usage limits, expiry dates and customer group restrictions
  • Custom modules or themes added only where the core rule model cannot express the campaign, following the documented module structure

How we hand over

  • Test matrix covering stacked rules, cart edge cases, tax-inclusive pricing and indexer refresh before launch
  • Runbook for activating, pausing and retiring rules, including the cron and indexer steps your operations team will run
  • Documentation of every rule, coupon set and custom code path, with a walkthrough for marketing and store staff

How we support

  • Pre-launch test results and a retest after fixes, so the final rule set is the one that was verified
  • Post-launch review of rule behavior during the first campaign cycles, with changes logged against the written scope
  • Ongoing support, upgrades and continuous testing are available as a retainer, with terms agreed in writing

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.