Mix and Match v2.8.6 – Cart Editing & Compatibility Improvements
Updates
Compatibility with WooCommerce 9.9 and WordPress 6.9
Mix and Match has been tested and confirmed compatible with WooCommerce 9.9.0 and WordPress 6.9.0.
Fixes
Corrected quantities when editing unlimited containers from the cart
Fixed an issue where item quantities could calculate incorrectly when editing a container with no size limit directly from the cart.
Resolved script update issue after quantity reset
If a child item started at quantity 1, was reset to 0, and then set back to 1, the container script did not always update correctly. This behavior has been fixed to ensure accurate totals and state updates.
Ignored default quantity filter when editing in cart
When editing a container from the cart, the wc_mnm_child_item_quantity_input_default_value filter is now properly ignored to prevent unintended quantity overrides.
Improvements
Added core cart removal and restore hooks
Added support for the WooCommerce core hooks woocommerce_remove_cart_item and woocommerce_restore_cart_item, improving compatibility with WooCommerce’s native cart behavior.
Aligned custom hooks with WooCommerce core patterns
Adjusted the order of the wc_mnm_cart_item_removed and wc_mnm_cart_item_restored hooks to follow WooCommerce core conventions, resulting in more predictable behavior for developers extending cart functionality.
Updated child item markup in the classic cart
Child item titles in the classic cart are now wrapped in <span> elements instead of <small> tags for improved markup consistency and styling flexibility.
Why this matters
- More reliable quantity handling when editing containers
- Correct cart updates after resetting item quantities
- Improved compatibility with WooCommerce core cart hooks
- More predictable behavior for developers extending cart functionality
- Cleaner and more flexible markup for classic cart displays