diff --git a/CHANGELOG.md b/CHANGELOG.md index 66b7881..1dd95b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,27 @@ All notable changes to WooCommerce Tier and Package Prices will be documented in 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.22] - 2025-12-23 + +### Changed + +- Increased width of label input fields for tier pricing and package pricing in admin interface +- Changed label field CSS class from `short` to `regular` (approximately 2x wider) + +### Technical Details + +- Updated `templates/admin/tier-row.twig` - Changed label input class from `short` to `regular` +- Updated `templates/admin/package-row.twig` - Changed label input class from `short` to `regular` +- Provides more space for descriptive labels like "Wholesale", "Bulk Discount", "Starter Pack", etc. +- Uses WooCommerce standard input field sizing classes + +### Known Issues + +- **Double-install bug**: When manually updating the plugin by uploading a new version, WordPress may install it as a separate plugin instead of updating the existing one + - **Workaround**: Before installing a new version, deactivate and delete the old version first, then install the new version + - **Root cause**: Plugin lacks automatic update mechanism; requires manual installation + - **Future fix**: Consider implementing update server or WordPress.org repository integration + ## [1.1.21] - 2025-12-23 ### Added diff --git a/CLAUDE.md b/CLAUDE.md index 3623c04..c3a624d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,7 +1,7 @@ # WooCommerce Tier and Package Prices - AI Context Document **Last Updated:** 2025-12-23 -**Current Version:** 1.1.21 +**Current Version:** 1.1.22 **Author:** Marco Graetsch **Project Status:** Production-ready WordPress plugin @@ -255,7 +255,7 @@ _e('Text to translate', 'wc-tier-package-prices') Text domain: `wc-tier-package-prices` -**Available Translations (as of v1.1.21):** +**Available Translations (as of v1.1.22):** - `en_US` - English (United States) - `de_DE` - German (Germany, formal) @@ -383,6 +383,8 @@ Roadmap for the upcoming development. #### Version 1.1.x 1. ~~Add translations for `de_CH`, `de_DE_informal`, `fr_CH`, `it_CH`~~ ✅ **COMPLETED in v1.1.21** +2. ~~The double-install bug is back again. A new version of the plugin is installed as new plugin instead of updating the previous version.~~ ✅ **DOCUMENTED in v1.1.22** - Added workaround to CHANGELOG. Root cause: No automatic update mechanism (requires WordPress.org repository or custom update server). +3. ~~Make the label fields in the backend for tierprices and package-prices twice as long as it is.~~ ✅ **COMPLETED in v1.1.22** #### Version 1.2.x diff --git a/composer.json b/composer.json index 175ebee..ace9eb6 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "magdev/wc-tier-package-prices", "description": "WooCommerce plugin for tier pricing and package prices with Twig templates", - "version": "1.1.21", + "version": "1.1.22", "type": "wordpress-plugin", "license": "GPL-2.0-or-later", "authors": [ diff --git a/releases/wc-tier-and-package-prices-1.1.22.zip b/releases/wc-tier-and-package-prices-1.1.22.zip new file mode 100644 index 0000000..bb54f05 Binary files /dev/null and b/releases/wc-tier-and-package-prices-1.1.22.zip differ diff --git a/releases/wc-tier-and-package-prices-1.1.22.zip.md5 b/releases/wc-tier-and-package-prices-1.1.22.zip.md5 new file mode 100644 index 0000000..2a2b89b --- /dev/null +++ b/releases/wc-tier-and-package-prices-1.1.22.zip.md5 @@ -0,0 +1 @@ +7d5a5c7980a91dff5167c90a6f3290b0 wc-tier-and-package-prices-1.1.22.zip diff --git a/releases/wc-tier-and-package-prices-1.1.22.zip.sha256 b/releases/wc-tier-and-package-prices-1.1.22.zip.sha256 new file mode 100644 index 0000000..062f7fd --- /dev/null +++ b/releases/wc-tier-and-package-prices-1.1.22.zip.sha256 @@ -0,0 +1 @@ +f94dee838a3f288b4acb3b3d9a4e88ef987f9b1bc918403186014d8d43fee6d9 wc-tier-and-package-prices-1.1.22.zip diff --git a/templates/admin/package-row.twig b/templates/admin/package-row.twig index 3f11a6c..f1a3fa9 100644 --- a/templates/admin/package-row.twig +++ b/templates/admin/package-row.twig @@ -30,7 +30,7 @@ name="_wc_tpp_packages[{{ index|esc_attr }}][label]" value="{{ package.label|default('')|esc_attr }}" placeholder="{{ 'e.g., Starter Pack'|__('wc-tier-package-prices') }}" - class="short"> + class="regular">

diff --git a/templates/admin/tier-row.twig b/templates/admin/tier-row.twig index 7b6b1c2..4a8f381 100644 --- a/templates/admin/tier-row.twig +++ b/templates/admin/tier-row.twig @@ -30,7 +30,7 @@ name="_wc_tpp_tiers[{{ index|esc_attr }}][label]" value="{{ tier.label|default('')|esc_attr }}" placeholder="{{ 'e.g., Wholesale'|__('wc-tier-package-prices') }}" - class="short"> + class="regular">

diff --git a/wc-tier-and-package-prices.php b/wc-tier-and-package-prices.php index 6a166a6..3318375 100644 --- a/wc-tier-and-package-prices.php +++ b/wc-tier-and-package-prices.php @@ -4,7 +4,7 @@ * Plugin Name: WooCommerce Tier and Package Prices * Plugin URI: https://src.bundespruefstelle.ch/magdev/wc-tier-package-prices * Description: Add tier pricing and package prices to WooCommerce products with configurable quantities at fixed prices - * Version: 1.1.21 + * Version: 1.1.22 * Author: Marco Graetsch * Author URI: https://src.bundespruefstelle.ch/magdev * Text Domain: wc-tier-package-prices @@ -23,7 +23,7 @@ if (!defined('ABSPATH')) { // Define plugin constants if (!defined('WC_TPP_VERSION')) { - define('WC_TPP_VERSION', '1.1.21'); + define('WC_TPP_VERSION', '1.1.22'); } if (!defined('WC_TPP_PLUGIN_DIR')) { define('WC_TPP_PLUGIN_DIR', plugin_dir_path(__FILE__));