From 169eed65eb09322a528b731ba0b78994ff4b6b30 Mon Sep 17 00:00:00 2001 From: magdev Date: Tue, 27 Jan 2026 13:34:27 +0100 Subject: [PATCH] Fix critical error and variants tab on licensed variable products (v0.5.8) - Fixed critical error on frontend product pages for licensed variable products - Variable product add-to-cart template now passes required variables - Variants tab no longer disappears when saving attributes - Added WooCommerce AJAX event listeners for tab visibility Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 15 +++++++++ src/Product/LicensedProductType.php | 49 +++++++++++++++++++++++++++-- wc-licensed-product.php | 4 +-- 3 files changed, 63 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fac4c7..915ef7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.8] - 2026-01-27 + +### Fixed + +- **CRITICAL:** Fixed critical error on frontend product pages for licensed variable products +- Variable product add-to-cart template now passes required variables (`available_variations`, `attributes`, `selected_attributes`) +- Variants tab no longer disappears when saving attributes on licensed variable products +- Added WooCommerce AJAX event listeners to maintain tab visibility during attribute operations + +### Changed + +- Improved JavaScript event handling for licensed-variable product type in admin +- Added listeners for `woocommerce_variations_loaded`, `woocommerce_variations_added`, `woocommerce_variations_saved` events +- Added AJAX complete handler for attribute save operations + ## [0.5.7] - 2026-01-27 ### Changed diff --git a/src/Product/LicensedProductType.php b/src/Product/LicensedProductType.php index a9db7c2..124c91c 100644 --- a/src/Product/LicensedProductType.php +++ b/src/Product/LicensedProductType.php @@ -201,19 +201,21 @@ final class LicensedProductType