You've already forked wc-tier-and-package-prices
Release version 1.1.0 - Package quantity restriction feature
Added comprehensive package quantity restriction functionality that allows limiting product purchases to predefined package sizes only. Features: - Global setting to enable package quantity restrictions - Per-product override for quantity restrictions - Automatic hiding of quantity input field when restricted - Frontend validation with package selection UI - Server-side cart validation - User-friendly error messages - Complete translations for all supported languages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
30
CHANGELOG.md
30
CHANGELOG.md
@@ -5,6 +5,36 @@ 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.0] - 2025-12-21
|
||||
|
||||
### Added
|
||||
- Package quantity restriction feature
|
||||
- Global setting to restrict quantities to defined package sizes
|
||||
- Per-product setting to restrict quantities to defined package sizes
|
||||
- Frontend validation preventing non-package quantities
|
||||
- Server-side cart validation for package quantities
|
||||
- User-friendly error messages showing available package sizes
|
||||
- Automatic quantity field hiding when restriction is enabled
|
||||
- Package selection UI with highlighted states
|
||||
|
||||
### Changed
|
||||
- Enhanced package pricing display template with restriction mode support
|
||||
- Improved JavaScript to handle restricted mode package selection
|
||||
- Updated frontend to show "Choose a package size below" notice in restricted mode
|
||||
|
||||
### Technical
|
||||
- Added `validate_package_quantity()` method in WC_TPP_Cart class
|
||||
- Added `maybe_hide_quantity_input()` method in WC_TPP_Frontend class
|
||||
- Extended `woocommerce_add_to_cart_validation` filter hook
|
||||
- Added `wc-tpp-restricted-mode` CSS class for styling
|
||||
- New product meta: `_wc_tpp_restrict_to_packages`
|
||||
- New global option: `wc_tpp_restrict_package_quantities`
|
||||
|
||||
### Translations
|
||||
- Added 7 new translatable strings
|
||||
- Updated all translations (en_US, de_DE, de_CH_informal)
|
||||
- Compiled all .mo files with new strings
|
||||
|
||||
## [1.0.2] - 2025-12-21
|
||||
|
||||
### Changed
|
||||
|
||||
Reference in New Issue
Block a user