Description
P-ivo – Discounted Bundles lets you group existing WooCommerce products into a single, discounted bundle product — percentage off, fixed amount off, or a fixed bundle price — without duplicating inventory. Customers see one clear, priced bundle line with a “you save” indicator; the individual products it contains ship, get taxed, and get refunded exactly like any normal order item, because that is what they are underneath the bundle display.
A basic revenue report shows what your bundles are actually earning from paid orders (processing or completed), netted for refunds automatically; an order refunded in full no longer counts.
Requires WooCommerce
This plugin requires WooCommerce to be installed and active. It does not work standalone.
Installation
- Upload the plugin files to the
/wp-content/plugins/p-ivo-discounted-bundles-for-woocommercedirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the “Plugins” screen in WordPress.
- Go to Products > Add New and choose “Bundle” as the product type to create your first bundle.
FAQ
Does bundle pricing account for role-based pricing, dynamic pricing plugins, or manually-set per-currency prices?
No. A bundle’s price is always calculated from each item’s own base regular price (the _regular_price value stored on the product), read directly and independent of any filter. This is deliberate: the discount math has to use a stable, unfiltered number so the same bundle definition produces the same distributed child prices every time it is priced, regardless of who is currently shopping or what currency they are viewing the store in.
The practical effect is that a role-based pricing rule, a dynamic-pricing plugin’s own discount, or a currency-switcher plugin’s manually-entered per-currency override on one of the bundle’s child products will not change what the bundle itself charges. Live “you save” comparisons elsewhere in the plugin do use each product’s normal, filtered price (so they still reflect a sale price or a currency conversion correctly) — it is specifically the amount actually charged for the bundle that is computed from the unfiltered base price.
Do bundle line items show correctly in the WooCommerce Block Cart and Block Checkout?
Yes, with one small, unavoidable limitation. In every place a customer sees an order — classic Cart, classic Checkout, Block Cart, Block Checkout, the mini-cart, the order-confirmation page, My Account, and every order email — a bundle’s child items show “Included” with no number, and the bundle’s real total plus a single “you save” indicator are shown on the bundle’s own line.
The limitation: WooCommerce’s Block Cart, Block Checkout and mini-cart render each item’s price through a platform API that only ever substitutes that row’s own real price into a fixed template. A bundle’s own (parent) row is priced at $0.00 — accurate for that row, because the amounts actually charged are on the child items — so on those block-based screens the plugin hides that $0.00 and writes the real bundle total and the “you save” note into the bundle’s name instead (for example “Coffee Starter Bundle — Total $80.00 — You save $20.00”). The cart and order totals are always correct. Screen readers on the Block Checkout order summary may still announce a bundle row as $0.00 and each child item’s real amount, because WooCommerce generates that text itself.
What if a bundle disappears while it is in a customer’s cart?
The customer’s items are never deleted. If a bundle in a cart is no longer available (for example the plugin was briefly deactivated, or an update failed), its items stay in the cart as ordinary products at their regular price, with a short note on each line and a notice on the Cart and Checkout pages explaining what happened. If a bundle is still available but one of its items runs out of stock, the incomplete bundle is dissolved: the bundle line is taken out of the cart with an explanation and its items stay as ordinary lines at their regular price (WooCommerce’s own stock check still stops an out-of-stock item from being bought), so a customer is never charged a bundle price for a bundle that cannot be fulfilled.
Does “Order again” work for a bundle?
Not yet. WooCommerce’s “Order again” button rebuilds a cart straight from an old order’s lines, which would charge for a bundle and for its contents separately, so the plugin leaves bundle lines out of a re-order and tells the customer to add the bundle again from the shop. Other items in the same order are re-added as usual.
Can I set a bundle’s price myself, for example through CSV import?
No: a bundle’s price is always calculated from its items and its discount. If a price is written to a bundle by another tool (REST API, CSV import, bulk edit), the plugin puts the calculated price back and removes any sale price, so the product page can never show a price the cart will not charge. Change the items or the discount value to change the price.
Are there any known limitations I should be aware of?
Yes. These are known and planned for a later release; none of them affects what a customer is charged:
- If you apply a coupon that cannot discount a cart containing only bundles (the default: coupons do not discount bundle items), the Block Cart still shows WooCommerce’s own brief “Coupon code applied” message first; the plugin then shows a permanent notice explaining that the coupon did not change the price.
- If a customer raises a bundle’s quantity beyond what an item’s stock allows, that is detected when the cart next loads (not at the moment of the click); the incomplete bundle is then removed from the cart with an explanation.
- Refunding a whole bundle order by typing the full amount, without including the bundle’s own (zero-priced) line in the refund, leaves the order at “Processing” and sends WooCommerce’s “partially refunded” email. Include the bundle line in the refund quantities (as WooCommerce does for any free item) to mark the order Refunded.
- In a store whose prices include tax, a bundle bought in a quantity above 1 can show a cart subtotal one cent different from the sum of its lines when the tax-free total falls exactly on half a cent (WooCommerce calculates with six decimals internally). What is charged — the total, the tax and the order — is exact.
- Translations: the plugin is translation-ready, but the translation template (.pot) is generated by a script in this release, and the Block Cart/Checkout labels are passed from PHP rather than through WordPress’s JavaScript translation files.
Does this plugin work with third-party invoice or packing-slip plugins?
It has not been built or tested against any specific invoice/packing-slip plugin. Because a bundle’s parent line is priced at $0.00 with the real charged amounts on its child lines (so that tax, stock, and refunds all work through WooCommerce’s own native per-item handling), a PDF invoice generated by a third-party plugin will show that same $0.00 parent line unless that plugin has its own bundle-aware display logic. This does not affect what the customer was actually charged, stock, or refunds — only how a document generated by a separate plugin happens to lay the line items out.
What happens if I create or edit an order that contains a bundle through Orders > Add order (or Edit order) in wp-admin?
Adding a bundle product through the admin order screen expands it into the same priced, tagged line items a storefront checkout produces — the bundle report, revenue ledger, refunds, and display all work identically regardless of whether the order was placed by a customer or created by an admin. Changing a bundle’s quantity on an existing order rescales its items in place without changing the price each item was originally sold at; removing a single item from inside a bundle removes the whole bundle group, to avoid leaving an order with an incomplete, mispriced bundle.
Does this plugin work with orders created through the REST API?
Yes — creating an order with a bundle product (POST) and changing a bundle’s quantity or removing an item from one (PUT) on an existing order both expand and reconcile exactly like the admin order screen, for any REST API client (including WooCommerce’s mobile app and point-of-sale integrations that create orders this way).
The one gap: an order created programmatically with WooCommerce’s own wc_create_order() function outside of the REST API, or through a CSV/bulk order-import tool, does not get expanded automatically — a bundle added that way is left as a single line item at its own catalog price, with no child items, stock effect, or ledger entry. This is a known limitation, not a bug; support for those two paths is not currently planned.
Can two copies of this plugin be active at the same time?
No. Activating a second copy while one is already active is blocked automatically, with a single notice on the Plugins screen that tells you which one to deactivate first. The copy that was already running stays active and untouched.
What happens to my bundles and sales history if I deactivate or delete the plugin?
Deactivating keeps everything: your bundle definitions and revenue history are still there when you activate the plugin again.
Deleting the plugin (not just deactivating it) with “Delete data on uninstall” turned on in Settings removes this plugin’s own database tables. If another copy of this plugin’s files is still present on your site — installed, even if not currently active — that deletion is skipped automatically instead, so removing one copy can never wipe out data the other copy still needs.
Screenshots






Changelog
1.1.3
Cart and checkout
- Adding a bundle that is already in the cart now raises its quantity instead of creating a second line.
- “Undo” in the classic cart brings back the whole bundle, not only its empty header line.
- If an item of a bundle sells out while the bundle is in the Block Cart, the bundle’s items now stay as ordinary products at their regular price, with one clear message. Before, they stayed marked as part of the missing bundle and could not be removed.
- A bundle containing an item that cannot be sold (for example one without a price) can no longer be added to the cart in an incomplete state.
- “Order again” no longer adds WooCommerce’s “items are unavailable” error just because bundle lines are left out on purpose.
- “You save” is no longer shown on a bundle that cannot be bought.
Prices and orders
- With a percentage discount, buying several bundles now costs exactly that many times the price shown on the product page.
- A bundle’s price can no longer fall to zero or below when its items become cheaper than a fixed discount.
- Stores whose prices include tax: a bundle added to an order in wp-admin or through the REST API now gets the correct amounts.
- Orders placed from this version on remember what each bundle contained, so changing a bundle later no longer removes it from such an order when you edit it.
- A bundle added to an order that is already paid appears in the Bundle Revenue report right away, and a permanently deleted order leaves no sales records behind.
- REST API: changing only an order’s status or details no longer re-checks its bundles, and a bundle line with quantity 0 returns a clear error instead of a server error.
Admin and My Account
- The “items, total” label on a bundle line of an order stays after items are added, removed or recalculated.
- A saved bundle reopens on the Bundle Items tab, and the item table fits narrow screens.
- My Account > Orders counts the products in a bundle, not its empty header line.
For developers
- New actions and filters (prefixed
pivopb_) let other code extend bundles.
1.0.0
- Initial release.
