WooCommerce dynamic pricing and discount rules

Need WooCommerce prices to change by quantity or customer? Set dynamic pricing rules and check discount stacking, tax and the final checkout price.

WooCommerce dynamic pricing changes product prices automatically when a basket or customer meets your discount rules. Use a pricing extension for quantity tiers or customer-role prices, then test the offer through checkout with competing discounts included.

The setup below uses WooCommerce Dynamic Pricing. Its settings and stacking rules belong to that extension, so use its field names when following the example.

Choose the price rule your offer needs

Choose a rule by what makes the customer eligible. A lower price for everyone can use the product’s built-in Sale price field. A code-based offer can use WooCommerce’s coupon settings, with product restrictions and usage limits.

Automatic quantity or role conditions call for a pricing extension. Separate these offers before configuring one:

OfferWhat qualifiesWhere to configure it in Dynamic Pricing
Quantity tiers or bulk discountUnits of a product reach a thresholdProduct’s Dynamic Pricing tab, Bulk mode
Customer-role priceCustomer signs in with an eligible roleRole Pricing for the catalogue, or a product rule for selected items
Category offerItems belong to an eligible categoryCategory Pricing, with Advanced Category Pricing for quantity conditions
Cart-based discountBasket reaches the offer’s spending thresholdOrder Totals Pricing

Bulk mode applies the reached tier to every qualifying unit. It differs from an offer that discounts only an extra item after a purchase threshold.

For role-based offers, create the role and assign a test customer before configuring the discount. WooCommerce’s wholesale pricing instructions distinguish a catalogue-wide role discount from a product-specific rule.

Set up the rule in the supported extension

Start with one product rule in a disposable staging copy, using an administrator account that can install extensions and edit products. Obtain and activate the Dynamic Pricing extension before opening the product editor.

The documented minimums are WordPress 6.5, WooCommerce 9.0 and PHP 7.4. Match your installed extension release to your store before testing. Its compatibility documentation declares support for Cart and Checkout blocks, but your theme and other price-changing plugins still need a combined test.

This illustrative offer gives 10% off when a customer buys at least four of one product. Assume its regular unit price is $50 excluding tax. Other products are excluded because the rule is attached only to this product.

  1. Edit the chosen product and open Product data, then Dynamic Pricing.
  2. Select Add Pricing Group.
  3. Set Applies To to Everyone. For a trade-only offer, choose Specific Roles and select the intended role instead.
  4. Set Quantities based on to Product Quantity and Rule Processing Mode to Bulk.
  5. Enter Minimum Quantity 4 and Max Quantity *, meaning four or more.
  6. Choose Percentage Discount and enter Amount 10. Select Update to save.

Four units must now cost $45 each, or $180 excluding tax before coupons and shipping. Three must remain $50 each. WooCommerce’s quantity-pricing recipe explains the fields and alternative adjustment types.

For a variable product, Product Quantity combines its variations. Variation Quantity tests each variation separately. Use Specific Variations when only selected sizes or colours qualify. Write that restriction into the offer customers see.

Control stacking and competing discounts

Give each overlapping rule an intended result before enabling the offer. In this extension, product pricing groups run top to bottom and the first matching group wins. A product rule takes priority over role pricing.

Category discounts combine with role discounts by default. Order-total pricing runs last on regular-priced items. These are the extension’s documented behaviours, not universal WooCommerce rules. The Dynamic Pricing reference also describes developer filters for changing cumulative behaviour and excluding sale items from product or advanced category adjustments.

Consider the illustrative $50 product with the four-unit rule and a separate 20% role discount. Once the product rule prices the line, it stays $180 excluding tax. Don’t expect a second role reduction to $144.

Coupons normally apply on top of Dynamic Pricing adjustments. A permitted 10% coupon reduces that $180 merchandise amount to $162 excluding tax. A coupon’s Individual use only setting prevents other coupons combining with it. It does not, by itself, make the coupon exclusive of dynamic pricing.

If your offer excludes sale items, distinguish existing sale prices from dynamically adjusted lines. The documented wc_dynamic_pricing_check_coupons filter makes coupons marked Exclude sale items skip adjusted lines. Have your developer apply the documented filter in staging, then test both kinds of discounted item. A sale-item checkbox alone is not evidence that your stacking policy works.

Keep product prices and checkout consistent

Keep the displayed offer conditional when its price depends on basket quantity. For the example, write “Buy four or more of this product for 10% off”. Showing $45 as an unconditional price would promise the discount to someone buying one.

A product tier beginning above one unit updates the basket price when the threshold is met. Role pricing can show an adjusted catalogue price to an eligible signed-in customer. Check the selected variation’s price separately from the product’s initial price range.

Follow one basket through the whole purchase:

  1. Open the product as a guest and record its regular price and offer wording.
  2. Select a variation if needed, add the qualifying quantity and confirm the adjusted merchandise amount in the basket.
  3. Enter the customer’s delivery address so location-dependent tax and shipping can settle.
  4. Apply any permitted coupon, then compare the basket and checkout amounts on the same tax basis.

WooCommerce’s tax settings separately control entered prices, shop display and cart/checkout display. For an illustrative 10% tax rate, the example’s $180 net merchandise amount becomes $198 including tax. With the extra coupon, $162 becomes $178.20. Assume no fees and add shipping separately.

A lower product subtotal can also change delivery eligibility. In the free-shipping settings, the minimum-order option can assess the amount before or after a coupon discount. Test that boundary with the actual shipping zone. A merchandise discount must not silently turn a promised free delivery offer into a paid one.

Verify the result for real basket conditions

Test each eligibility boundary with the same saved rule before advertising the offer. These expected amounts use the illustrative $50 product, Everyone eligibility and no coupons. Amounts exclude tax and shipping.

Basket conditionExpected merchandise resultWhat a mismatch suggests
Four eligible units$180Threshold, adjustment or competing-rule issue
Three eligible units$150Discount starts too early if less than $150
Two small and two large variations, Product Quantity$180Variations are being counted separately if the total is $200
Same mixed variations, Variation Quantity$200Quantities are being combined if the discount applies
Four eligible units plus one excluded $30 product$210Offer has spread beyond its intended product if the extra item is reduced

With Everyone selected, guests and ordinary signed-in customers must receive the same quantity discount. For Specific Roles, repeat the basket using an eligible customer and an ineligible customer. The latter must stay at regular prices. Use customer accounts instead of a network administrator to assess role eligibility.

Refresh the qualifying basket, reduce it to three units and refresh again. The amount must return to $150 excluding tax. Then add the fourth unit and continue to checkout. A saved basket must recalculate when its eligibility changes.

If the product page shows an old price but the basket is correct, compare a fresh private session with the affected session. Ask your host to bypass page caching for customer-specific prices and retest after clearing the affected cache. If both basket and checkout are wrong, first inspect the saved quantity basis and the first matching pricing group.

If only shipping looks stale, WooCommerce’s shipping debug setting displays the matched zone and bypasses the shipping-rate cache during diagnosis. Turn debugging off after the check. Retain the tested basket quantities and expected amounts so the same checks can be repeated after a pricing-extension update.

Give your store its own shopping agent

Customers ask in their own words. Your agent finds, compares and checks out from your catalogue, right on your site.

See it in actionFree trial · Simple setup