You've already forked wc-licensed-product
Update CLAUDE.md with v0.5.12 and v0.5.13 session history
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
57
CLAUDE.md
57
CLAUDE.md
@@ -1543,3 +1543,60 @@ Series of bug fixes for licensed variable products that were showing frontend er
|
||||
- Created release package: `releases/wc-licensed-product-0.5.11.zip` (857 KB)
|
||||
- SHA256: `32571178bfa8f0d0a03ed05b498d5f9b3c860104393a96732e86a03b6de298d2`
|
||||
- Committed to `dev` branch
|
||||
|
||||
### 2026-01-27 - Version 0.5.12 - Stock Display Fix
|
||||
|
||||
**Overview:**
|
||||
|
||||
Fixed stock indicator appearing in cart for licensed variable product variations.
|
||||
|
||||
**Bug Fix:**
|
||||
|
||||
- Fixed "1 in stock" message appearing in cart for licensed variable product variations
|
||||
- Added multiple WooCommerce filter overrides to suppress stock display
|
||||
|
||||
**Modified files:**
|
||||
|
||||
- `src/Product/LicensedVariableProduct.php` - Override `get_children()`, `get_variation_attributes()`, `get_variation_prices()`, `get_available_variations()`, `is_type()`
|
||||
- `src/Product/LicensedProductVariation.php` - Added `get_availability()`, `managing_stock()`, `is_purchasable()` overrides
|
||||
- `src/Product/LicensedProductType.php` - Added stock-related filter hooks
|
||||
|
||||
**Technical notes:**
|
||||
|
||||
- `get_children()` uses direct SQL query to bypass WooCommerce's `is_type('variable')` check
|
||||
- `is_type()` override returns true for both 'licensed-variable' and 'variable' type checks
|
||||
- Stock filters: `woocommerce_get_availability_text`, `woocommerce_product_get_stock_quantity`, `woocommerce_product_variation_get_stock_quantity`
|
||||
|
||||
### 2026-01-27 - Version 0.5.13 - Admin Order License Display Fix
|
||||
|
||||
**Overview:**
|
||||
|
||||
Fixed licenses not showing in admin order form for licensed-variable products and removed debug logging.
|
||||
|
||||
**Bug Fixes:**
|
||||
|
||||
- **CRITICAL:** Fixed licenses not appearing in admin order form for orders containing licensed-variable products
|
||||
- `OrderLicenseController` now uses `LicenseManager::isLicensedProduct()` for consistent product type detection across 4 locations
|
||||
- Fixed expected licenses calculation for variable product orders
|
||||
- Fixed manual license generation from admin order page for variable products
|
||||
|
||||
**Cleanup:**
|
||||
|
||||
- Removed all debug `error_log()` calls from PHP source files
|
||||
- Removed all debug `console.log()` calls from JavaScript files
|
||||
- Files cleaned: Plugin.php, CheckoutBlocksIntegration.php, StoreApiExtension.php, CheckoutController.php, checkout-blocks.js
|
||||
|
||||
**Modified files:**
|
||||
|
||||
- `src/Admin/OrderLicenseController.php` - Use `isLicensedProduct()` in 4 locations
|
||||
- `src/Plugin.php` - Remove debug logging
|
||||
- `src/Checkout/CheckoutBlocksIntegration.php` - Remove debug logging
|
||||
- `src/Checkout/StoreApiExtension.php` - Remove debug logging
|
||||
- `src/Checkout/CheckoutController.php` - Remove debug logging
|
||||
- `assets/js/checkout-blocks.js` - Remove debug logging
|
||||
|
||||
**Release v0.5.13:**
|
||||
|
||||
- Created release package: `releases/wc-licensed-product-0.5.13.zip` (1.0 MB)
|
||||
- SHA256: `814710ad899529d0015494e4b332eace7d8e55aeda381fdf61f99274c0bf910c`
|
||||
- Committed to `dev` branch
|
||||
|
||||
Reference in New Issue
Block a user