You've already forked wc-composable-product
-
Release v1.1.11 - Variable Product Support
released this
2025-12-31 21:52:14 +00:00 | 25 commits to main since this releaseThis release adds support for variable products in composable product selections.
ADDED:
- Variable product support - composable products can now include variable products
- Variable products automatically expand to show all available variations
- Each variation displays with full attribute information
- Variations show stock status and pricing individually
FIXED:
- Products not showing when all available products were variable products
- Variable products were filtered out because parent products aren't purchasable
- Empty selector when category/tag contained only variable products
TECHNICAL CHANGES:
- Modified get_available_products() in Product_Type.php (lines 160-188)
- Added is_type('variable') detection logic
- Variable products expand using get_available_variations()
- Each variation validated individually for stock and purchasability
- Simple products continue to work with backward compatibility
HOW IT WORKS:
When a variable product is found (e.g., "T-Shirt" with Size and Color attributes):- Plugin detects it's a variable product type
- Retrieves all available variations
- Each variation becomes a selectable item:
- "T-Shirt - Color: Red, Size: Small"
- "T-Shirt - Color: Red, Size: Medium"
- "T-Shirt - Color: Blue, Size: Small"
- etc.
- Each variation checked individually for stock and purchasability
- Variations display with proper pricing and stock indicators
IMPACT:
- Greatly expands product compatibility
- Resolves issue where variable products didn't appear
- Customers can select specific variations (color, size, etc.)
- Stock management works correctly per variation
- Pricing calculates correctly for each variation
COMPATIBILITY:
- Fully backward compatible with simple products
- No changes to existing functionality
- No new translatable strings (100% translation coverage maintained)
- Works with all existing features (stock management, pricing modes, etc.)
Package: wc-composable-product-v1.1.11.zip
Size: ~413 KB
Files: 379 (source + vendor + translations)🤖 Generated with Claude Code
Downloads