You've already forked wc-tier-and-package-prices
Release version 1.1.3 - Cart quantity visibility fix
Fixed persistent cart quantity input visibility issues for products with package quantity restrictions. Enhanced implementation ensures quantity inputs are properly hidden in both main cart and mini-cart/sidebar. Fixes: - Cart quantity inputs now properly hidden with increased filter priority - Mini-cart quantity inputs correctly replaced with read-only text - Added fallback CSS injection to handle theme/plugin conflicts - Enhanced DOM targeting with data attributes and multiple CSS selectors Technical Changes: - Increased filter priority to 999 for woocommerce_cart_item_quantity - Added woocommerce_widget_cart_item_quantity filter for mini-cart support - Added add_cart_quantity_css() method for dynamic CSS injection - Added maybe_hide_mini_cart_quantity_input() method - Enhanced quantity spans with data-product-id attribute - Added wc-tpp-restricted-qty CSS class - Implemented sibling (+) and general sibling (~) CSS selectors Updated Files: - includes/class-wc-tpp-cart.php (enhanced with mini-cart support) - wc-tier-and-package-prices.php (version 1.1.3) - composer.json (version 1.1.3) - CHANGELOG.md (v1.1.3 section) - All translation files (.pot, .po, .mo) updated to version 1.1.3 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
19
CHANGELOG.md
19
CHANGELOG.md
@@ -5,6 +5,25 @@ 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.3] - 2025-12-21
|
||||
|
||||
### Fixed
|
||||
- Cart quantity input visibility issue in cart and cart sidebar for restricted products
|
||||
- Enhanced filter priority (999) to ensure quantity hiding runs after other plugins
|
||||
- Mini-cart quantity input now properly hidden for restricted products
|
||||
|
||||
### Added
|
||||
- `woocommerce_widget_cart_item_quantity` filter support for mini-cart
|
||||
- `add_cart_quantity_css()` method for dynamic CSS injection
|
||||
- `data-product-id` attribute to quantity spans for targeted CSS selectors
|
||||
- CSS class `wc-tpp-restricted-qty` for improved targeting
|
||||
|
||||
### Technical
|
||||
- Increased filter priority from 10 to 999 for `woocommerce_cart_item_quantity`
|
||||
- Added `maybe_hide_mini_cart_quantity_input()` method in WC_TPP_Cart class
|
||||
- Dynamic CSS injection via `wp_head` action as fallback
|
||||
- Used both sibling (+) and general sibling (~) CSS selectors for DOM variations
|
||||
|
||||
## [1.1.2] - 2025-12-21
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user