From 4195fb26514fe40b1ea6c67d1dfcc9203795160d Mon Sep 17 00:00:00 2001 From: magdev Date: Wed, 31 Dec 2025 22:59:46 +0100 Subject: [PATCH] Bump version to 1.1.12 for variable product fix release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ wc-composable-product.php | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 318258d..317f093 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.12] - 2025-12-31 + +### Fixed + +- **CRITICAL**: Variable product variations still not appearing in product selector after v1.1.11 release +- Changed variation retrieval method from `get_available_variations()` to `get_children()` for more reliable variation ID retrieval +- `get_available_variations()` returns complex data arrays which may not work in all contexts +- `get_children()` returns simple array of variation IDs directly, ensuring consistent results + +### Technical + +- Modified file: includes/Product_Type.php (lines 171-184) +- Changed from `$product->get_available_variations()` to `$product->get_children()` +- More direct and reliable method for retrieving variation IDs +- Each variation ID passed to `wc_get_product()` for full product object +- Maintains all stock and purchasability checks from v1.1.11 + +### Notes + +- This is a patch release fixing the variable product support introduced in v1.1.11 +- User reported "nope, still no product selectable" after v1.1.11 +- Root cause: `get_available_variations()` returns variation data arrays instead of clean IDs +- `get_children()` is the standard WooCommerce method for retrieving variation IDs +- All translation files remain at 100% completion (57/57 strings - no changes needed) + ## [1.1.11] - 2025-12-31 ### Added diff --git a/wc-composable-product.php b/wc-composable-product.php index 0368998..6aa22e3 100644 --- a/wc-composable-product.php +++ b/wc-composable-product.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Composable Products * Plugin URI: https://github.com/magdev/wc-composable-product * Description: Create composable products where customers select a limited number of items from a configurable set - * Version: 1.1.11 + * Version: 1.1.12 * Author: Marco Graetsch * Author URI: https://example.com * License: GPL v3 or later @@ -19,7 +19,7 @@ defined('ABSPATH') || exit; // Define plugin constants -define('WC_COMPOSABLE_PRODUCT_VERSION', '1.1.11'); +define('WC_COMPOSABLE_PRODUCT_VERSION', '1.1.12'); define('WC_COMPOSABLE_PRODUCT_FILE', __FILE__); define('WC_COMPOSABLE_PRODUCT_PATH', plugin_dir_path(__FILE__)); define('WC_COMPOSABLE_PRODUCT_URL', plugin_dir_url(__FILE__));