| 开发者 | bestwpexpert |
|---|---|
| 更新时间 | 2026年10月31日 23:33 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[mmbb_box id="12"] shortcode.productboxes-mix-and-match-box-builder to /wp-content/plugins/.[mmbb_box id="12"] shortcode.Publish a campaign on a page with the Box Builder block or [mmbb_box id="12"]. Shortcode options: layout (panel, bar, both), columns (3, 4, 5), and hero (true, false).
Yes. Shoppers can mix and match eligible simple products or variations, with optional per-product limits.
Tiered discount, fixed box size, and fixed bundle price. Choose quantity-based discounts, selectable box sizes, or one price for an exact item count.
Yes. Campaigns can offer an optional gift wrap fee and gift message. The message appears with order details and emails.
Yes. Choose the bundle price campaign, set the item count and box price, and select eligible products.
The builder uses scoped styles and was tested with Twenty Twenty-Five and Storefront. On mobile, it uses two columns, a sticky summary bar, and a bottom sheet.
Yes. Contents, discounts, messages, next-discount hints, and the Edit box link work in classic and block carts, with details saved on orders. Locked quantities in "Box plus each item" mode are fully supported in the classic cart.
By default, scripts and styles load only where a box builder is displayed. This can be changed under "Load assets only on pages with a builder" in Settings.
By default, a box is one cart line taxed using the hidden box product's tax class (Standard unless changed). Choose "Box plus each item" under Cart settings when items need separate cart lines and their own tax classes.
Each published campaign has a hidden box product for the cart. ProductBoxes manages its name and price. Edit the campaign instead; deleting it also trashes the container product.
ProductBoxes remains inactive without breaking the site. Users with plugin activation permissions see a dismissible admin notice.
Data remains after deactivation or uninstall unless "Delete all plugin data" is enabled in Settings. WooCommerce orders are never deleted. Multisite installations use separate settings per site, disabled by default.
No. Optional analytics stay in your database, record no IP addresses, and can be disabled. See Privacy below.
Yes. See Source code and build below. Developer hooks use the mmbb_ prefix:
mmbb_campaign_config_defaults (filter): default configuration for a blank campaign; sanitized again.mmbb_templates (filter): campaign-picker templates with id, title, type_label, description, art, and partial config.mmbb_pricing_quote (filter): calculated quote, campaign config, items, and options; amounts use integer minor units.mmbb_campaign_saved (action): runs after save with campaign ID and sanitized config.mmbb_ensure_container_product (filter): return a container product ID, WP_Error to stop publishing, or null; receives current value and campaign ID.mmbb_track_events (filter): return false to disable analytics collection.