Mix and Match v2.7.3 – Cart Editing & Script Behavior Improvements
Fixes
Corrected quantity input when editing containers in the cart
Fixed an issue where the quantity input value could display incorrectly when editing a Mix and Match container directly from the cart.
Removed child item permalinks in the Cart Block
Child item titles in the Cart Block no longer link to their product pages, preventing navigation issues when viewing container contents in the cart.
Improvements
Improved quantity detection for AJAX add-to-cart themes
Added a fallback that attempts to read quantity values from string inputs such as mnm_quantity[99]. This helps support themes that modify the add-to-cart process using AJAX.
Updated JavaScript hook naming convention
Renamed the WordPress wp.hooks action from wc-mnm-initialize.${product_type} to wc.mnm.initialize.${product_type} to follow a more consistent naming pattern.
Redirect to cart when editing containers
The wc-add-to-cart script parameters now instruct WooCommerce to redirect to the cart when editing an existing container configuration.
Why this matters
- Ensures accurate quantity values when editing containers in the cart
- Prevents unwanted navigation from Cart Block child item links
- Improves compatibility with themes using AJAX add-to-cart
- Standardizes JavaScript hook naming for integrations
- Provides a smoother experience when editing container configurations