| 开发者 | pluginivo |
|---|---|
| 更新时间 | 2026年11月29日 18:29 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/p-ivo-discounted-bundles-for-woocommerce directory, or install the plugin through the WordPress plugins screen directly.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.
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. On the Block Cart and Block Checkout the total is in the line-total column, with the price of one bundle under the name; the mini-cart and the Block Checkout order summary also show the total next to the bundle's name. 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 figures next to it: the bundle total in the line-total column of the Cart and Checkout blocks, and into the bundle's name where there is no such column (the mini-cart, 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.
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.
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.
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.
Yes. These are known and planned for a later release; none of them affects what a customer is charged:
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.
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.
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.
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.
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.
pivopb_) let other code extend bundles.