ManageGPLNEWManage every WordPress site from one dashboard · update them all in one clickEvery site, one dashboardFree for 5 sitesNo card needed
Start free
ManageGPLNew
One dashboard for every WordPress site — update everything in one clickUpdate every WordPress site in one clickPremium plugins included
Return child items' parent item key in Store API cart item response, starting WooCommerce 11.3.
Improved
Tested up to WooCommerce 11.3.0.
Fixed
Fatal error "array_merge(): Argument #1 must be of type array, null given" in cart_shipping_packages() when adding a container to the cart while local pickup is the chosen shipping method. WooCommerce 11.3 builds shipping packages during the tax rate lookup, before new cart items have line totals. Line totals are now only added to the container's package when they exist. The remaining "Undefined array key "line_total"" warning comes from WooCommerce itself: https://github.com/woocommerce/woocommerce/issues/71156
Tax data of child items that are packaged with their container is now summed by tax rate ID in the container's shipping package. Previously the rate IDs were renumbered.
Child item images in block themes showed a zoom cursor and linked to the full size image, but no lightbox opened. WooCommerce declares lightbox support for block themes without loading PhotoSwipe, so the images are no longer linked when PhotoSwipe isn't on the page.
Without lightbox support, the child item image template printed the full size image without its alt text. Updated template single-product/mnm/mnm-product-thumbnail.php.
Child items of containers that are priced per item and added or edited in the admin order editor are taxed at the order's address instead of the admin user's. Since WooCommerce 11.3, the address typed in the order editor is used, as core does for other line items. This only changes prices entered including tax when the woocommerce_adjust_non_base_location_prices filter returns false.
PHP warning when a WooCommerce checkout link passes mnm_config in its cart item data. The container is not added and the shopper sees that the configuration is not valid.
"Undefined array key" warnings in cart_shipping_packages() when WooCommerce Multilingual translates the cart after a language switch, or whenever child items change keys or leave the cart during a request. Child items were left out of the container's shipping weight and value for that calculation. wc_mnm_get_child_cart_items() and wc_mnm_get_cart_item_container() no longer cache their results, so they always reflect the current cart contents.
Container cart validation could miss child items that were removed from the cart earlier in the same request.
Remove debugging output from the "Some items you have selected are no longer available" notice.
Fatal error after updating from 2.9.4 or earlier when PHP OPcache still held the old autoloader, which pointed to the Not Sold Separately feature's previous location in includes/features/not-sold-separately/. Stub files at the old paths now load the classes from src/Features/NotSoldSeparately/.
New wc_mnm_has_plus_minus_buttons() template function to check whether plus/minus buttons are enabled, filterable via wc_mnm_has_plus_minus_buttons. Updated template single-product/mnm/mnm-product-quantity.php.
Astra and Flatsome compatibility modules now disable plus/minus buttons via the wc_mnm_has_plus_minus_buttons filter instead of pre_option_wc_mnm_display_plus_minus_buttons.
Improved
The Store API errors when removing a child item or changing its quantity now name the child product and its container instead of "This product".
Note in the "Display plus/minus buttons" Customizer setting description that it has no effect in the Add to Cart + Options block.
Fixed
Harden child item validation. Child items cannot be modified independently of their container. #615.
Stale container returned by wc_mnm_get_cart_item_container() after the container was removed from the cart. The cart is now checked for the container before the cached value is used.
Give child item checkbox inputs a custom ID attribute to prevent plus/minus buttons and a border by the Add to Cart + Options block. Updated template single-product/mnm/mnm-product-quantity.php.
Child item quantity steppers in the Add to Cart + Options block were labelled with the container product name instead of the child product name.
Duplicate plus/minus buttons on child item quantity inputs in the Add to Cart + Options block. As of WooCommerce 10.8 the block adds its own quantity steppers, so Mix and Match's plus/minus buttons are now disabled inside the block regardless of the "Display plus/minus buttons" Customizer setting. The classic add to cart form is unaffected. #543.
Hide child item prices in the Cart block when the container is fixed-price.
Suppress "removed from your cart" notices for child items in the Cart block when their container is removed. Requires WooCommerce 9.5.2+. The Mini-Cart block does not yet support suppressing these notices.
ShipStation exports of per-item priced, packed-together containers reported the container line at double its value. Packaged child totals were aggregated into the container twice, introduced in 2.9.0.
Tested up to WooCommerce 11.1.0 and WordPress 7.1.0.
Fixed
Subscription details (e.g. "/ month") dropped from the container price string after any quantity change on a fixed-price container with a single forced subscription plan (Subscriptions 9 / All Products for Subscriptions).
Replace wc_mnm_show_free_string with existing wc_mnm_container_show_free_string filter.
Fixed
All Products for WooCommerce Subscriptions wc-mnm-validation-status-changed event callback not firing, fixes hide/show of schemes.
Do not display $0.00 price as Free! for per-item priced containers unless enabled via add_filter( 'wc_mnm_container_show_free_string', '__return_true' );
Launch PayPal compatibility module to disable Smart Pay Buttons on Name Your Price products.
Tested up to WooCommerce 9.9.0 and WordPress 6.9.0.
Add core hooks for woocommerce_remove_cart_item and woocommerce_restore_cart_item.
Align order of wc_mnm_cart_item_removed and wc_mnm_cart_item_restored hooks to core pattern.
Wrap child item titles in the classic cart in <span> instead of <small>.
Fixed
Incorrect quantities when editing from cart with an unlimited container size.
Missing container script update when child item quantity is changed after reset, specifically if initial quantity was 1, reset to 0, then set to 1 again.
Ignore wc_mnm_child_item_quantity_input_default_value when editing container in cart.
Introduce minimalist cart display mode for cart block and side cart blocks. Enable via add_filter( 'wc_mnm_enable_minimal_cart_display', '__return_true' );
Improved
Add theme button classes to View Cart error notice.
Fixed
Fatal error: Uncaught Exception stock validtation in trait-wc-mnm-container-validation.php.
Use transients to store DB queries. Improves single page and cart block performance.
Introduce sanitize_configuration(), is_valid_configuration(), and validate_configuration() methods to WC_Product_Mix_and_Match class. Use these instead of WC_MNM_Cart methods.
Add support for adding Mix and Match products to existing subscriptions where supported.
Improved
Please update any mini-extensions to their latest versions.
Tested up to WooCommerce 10.2.0.
Strings updated, please check your translations.
Reduce order notes created when editing containers is admin. Use add_filter( 'wc_mnm_log_container_config_changes_in_order_notes', '__return_false' ); to disable notes entirely. Closes #552.
Revert back to using wc_mnm_get_child_input_name() to generate input names. Child item class method get_input_name() is deprecated.
Update single-product/mnm/grid/mnm-items-wrapper-open.php and single-product/mnm/grid/mnm-items-wrapper-close.php template to use woocommerce_product_loop_start() and woocommerce_product_loop_end() respectively to open/close child item loops when those provide <ul> elements. Improves theme compatibility.
Default to removing .has-flex class from container grid. Use `add_filter( 'wc_mnm_grid_has_flex_layout', '__return_true' ); filter to re-enable. Should improve theme compatibility.
Remove layout override options from individual products unless currently in use. Can be restored with add_filter( 'wc_mnm_show_layout_override_options', '__return_true' );
Replace "Starting at $x" strings with core wc_get_price_html_from_text().
Stop showing discounts and sale ranges together by default, ~$5.00 – $9.00~ $10.00 – $20.00. Can restore with add_filter( 'wc_mnm_container_show_discounted_range_price', '__return_true' );
Fixed
IMPORTANT: PHP 7.4 is required | WordPress 6.2.0 is required | WooCommerce 8.2.0.
When no quantity restrictions, still check for changes between add to cart|cart config and allowed config. Closes #555.
Security
Breaking: wc_mnm_child_item_quantity_name_prefix filter is deprecated with no exact replacement though wc_mnm_quantity_name_prefix will be similar with different args.
Introduce styling for Mix and Match products in Receipt Rendering engine.
Improved
Slight simplification to add to cart validation error strings( "You have selected too many items" and "You have selected too few items"). Double check your translations for to
Fixed
Resolved a fatal error triggered with WooCommerce 9.1, when tracking and legacy Order data storage were enabled.
Harden validation of mix and match container that's already in cart.
Show placeholder image if child product has no thumbnail.
As a last resort, attempt to get posted quantity from string inputs, ie: "mnm_quantity[99]" which commonly happens when themes attempt ajax add to cart.
Rename wp.hooks action wc-mnm-initialize.${product_type} to wc.mnm.initialize.${product_type}
Tell wc-add-to-cart script params to redirect to cart when editing a container in the cart.
Fixed
Incorrect quantity input value when editing a mix and match container in cart. #536.
Remove permalinks from child items in the cart block.
Eliminated dynamic properties on objects. Resolves warning notices in PHP 8.2+. (Important! If using Not Sold Separately, you will need to upgrade to 2.4 of later: https://github.com/kathyisawesome/wc-not-sold-separately/releases/latest)
Introduce wp.hooks actions wc-mnm-initialize.${product_type} and wc.mnm.container.container-updated and filter wc.mnm.container.update_order_item_data for compatibility with mini-extensions. NB: This replaces the experimental wc_mnm_update_container_order_item_data triggerHandler and the Javascript wc-mnm-initialize.${product_type} custom event in the order metabox scripts.
Improved
Add grayscale effect to out of stock child items.
Style compatibility tweak for quantity input alignment in Twenty TwentyFour theme.
Fixed
Show child item availability/stock status if container has insufficient stock.
Important: The 'Form Location' option is no longer supported when using a block theme. Use the following snippet to force its use: 'add_filter( 'wc_mnm_has_legacy_product_template', '__return_true' );' #503.
Hide points and rewards message when container has a minimum of 0 points.
Rename css class for child items in documents generated by Print Invoices and Packing lists.
Fixed
Format the container line total for per-item priced containers with correct decimal setting in the cart block.
Order item editing script not loaded on HPOS new order page.
Introduce WC_MNM_Core_Compatibility::get_post_or_object_meta() to better support older versions of WC.
Suppress item removed popup notifications for child items in Cart Block when Container is removed. #505.