From dd5965ae4ceb974eb8503103ec638b8e2f07d4d3 Mon Sep 17 00:00:00 2001 From: magdev Date: Sun, 1 Mar 2026 12:23:01 +0100 Subject: [PATCH] Add option to include non-public products in selections (v1.3.0) Allow draft and private products to appear in composable product selections. Useful when products should only be sold as part of a composition, not individually. Includes global setting and per-product override with translations in all 6 locales. Co-Authored-By: Claude Opus 4.6 --- CHANGELOG.md | 10 ++++++++ includes/Admin/Product_Data.php | 17 ++++++++++++++ includes/Admin/Settings.php | 7 ++++++ includes/Product_Type.php | 23 ++++++++++++++++--- languages/wc-composable-product-de_CH.po | 20 ++++++++++++++++ .../wc-composable-product-de_CH_informal.po | 20 ++++++++++++++++ languages/wc-composable-product-de_DE.po | 20 ++++++++++++++++ .../wc-composable-product-de_DE_informal.po | 20 ++++++++++++++++ languages/wc-composable-product-fr_CH.po | 20 ++++++++++++++++ languages/wc-composable-product-it_CH.po | 20 ++++++++++++++++ languages/wc-composable-product.pot | 20 ++++++++++++++++ wc-composable-product.php | 4 ++-- 12 files changed, 196 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index edd11f4..2b50ab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ 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.3.0] - 2026-03-01 + +### Added + +- **Include Non-Public Products**: New option to include draft and private products in composable product selections + - Global setting under WooCommerce > Settings > Composable Products + - Per-product override in the Composable Options tab (Use global default / Yes / No) + - Useful when products should only be sold as part of a composition, not individually +- Translations for the new setting in all 6 locales (de_DE, de_CH, fr_CH, it_CH + informal variants) + ## [1.2.1] - 2026-03-01 ### Changed diff --git a/includes/Admin/Product_Data.php b/includes/Admin/Product_Data.php index 79b7d0c..d0f5d24 100644 --- a/includes/Admin/Product_Data.php +++ b/includes/Admin/Product_Data.php @@ -95,6 +95,19 @@ class Product_Data {