Skip to content

somewherewarm/woocommerce-product-bundles-bulk-discounts

Repository files navigation

Product Bundles - Bulk Discounts

What's This?

Mini-extension for WooCommerce Product Bundles that allows you to create dynamic pricing rules and offer bulk quantity discounts.

How It Works

To add bulk discounts to a Product Bundle, navigate to Product Data > Bundled Products and locate the Bulk discounts field. Add one discount rule per line using:

  • quantity range format - e.g. 1 - 5 | 5
  • single quantity format - e.g. 6 | 10
  • "equal to or higher" format - e.g. 7+ | 15

Adding bulk discount rules.

When a Product Bundle with bulk discounts is configured, the price total that's normally displayed above the add-to-cart button changes slightly to include some extra information:

  • The current Subtotal (price before discount).
  • The applicable Discount amount.
  • The final Total (price after discount).

Purchasing a Bundle with bulk discounts.

Note

By default, bulk discounts are applied to the prices of all bundled products that are Priced Individually.

If a Product Bundle with bulk discount rules has a static/base Regular Price and/or Sale Price, its static/base price component will remain unchanged.

To discount static/base bundle prices, use the following snippet:

add_filter( 'wc_pb_bulk_discount_apply_to_base_price', '__return_true' );

Important

Requires WooCommerce Product Bundles 5.10+.