You've already forked wc-tier-and-package-prices
Update documentation to v1.1.20 with current features
- Updated all version references to 1.1.20 - Updated WordPress requirement to 6.0+ (tested up to 6.9.x) - Updated WooCommerce requirement to 8.0+ (tested up to 10.x) - Added comprehensive file structure showing Twig templates - Added WooCommerce Blocks compatibility documentation - Added tier labels feature documentation (v1.1.7) - Added quantity restrictions feature documentation (v1.1.0) - Added new usage examples for tier labels and quantity restrictions - Updated INSTALLATION.md with complete directory structure - Updated README.md with current version changelog - Updated QUICKSTART.md with 8 pro tips including new features - Updated USAGE_EXAMPLES.md with 6 complete examples - Documented WooCommerce Blocks support and v1.1.20 critical fix 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
91
README.md
91
README.md
@@ -110,12 +110,22 @@ When editing a product, scroll to the **Product data** panel:
|
||||
|
||||
```
|
||||
wc-tier-and-package-prices/
|
||||
├── wc-tier-and-package-prices.php # Main plugin file
|
||||
├── wc-tier-and-package-prices.php # Main plugin file (v1.1.20)
|
||||
├── includes/
|
||||
│ ├── class-wc-tpp-admin.php # Admin settings
|
||||
│ ├── class-wc-tpp-admin.php # Admin settings integration
|
||||
│ ├── class-wc-tpp-settings.php # WooCommerce settings page
|
||||
│ ├── class-wc-tpp-product-meta.php # Product meta boxes
|
||||
│ ├── class-wc-tpp-frontend.php # Frontend display
|
||||
│ └── class-wc-tpp-cart.php # Cart price calculations
|
||||
│ ├── class-wc-tpp-frontend.php # Frontend display logic
|
||||
│ ├── class-wc-tpp-cart.php # Cart price calculations
|
||||
│ └── class-wc-tpp-template-loader.php # Twig template engine
|
||||
├── templates/
|
||||
│ ├── admin/
|
||||
│ │ ├── tier-row.twig # Tier pricing input row
|
||||
│ │ └── package-row.twig # Package pricing input row
|
||||
│ └── frontend/
|
||||
│ ├── pricing-table.twig # Main pricing display wrapper
|
||||
│ ├── tier-pricing-table.twig # Tier pricing table
|
||||
│ └── package-pricing-display.twig # Package selection UI
|
||||
├── assets/
|
||||
│ ├── css/
|
||||
│ │ ├── admin.css # Admin styles
|
||||
@@ -123,7 +133,16 @@ wc-tier-and-package-prices/
|
||||
│ └── js/
|
||||
│ ├── admin.js # Admin JavaScript
|
||||
│ └── frontend.js # Frontend JavaScript
|
||||
└── README.md
|
||||
├── languages/
|
||||
│ ├── wc-tier-package-prices.pot # Translation template
|
||||
│ ├── wc-tier-package-prices-*.po # Translation sources
|
||||
│ └── wc-tier-package-prices-*.mo # Compiled translations
|
||||
├── vendor/ # Composer dependencies (Twig)
|
||||
├── CHANGELOG.md # Complete version history
|
||||
├── INSTALLATION.md # Installation guide
|
||||
├── QUICKSTART.md # Quick start guide
|
||||
├── USAGE_EXAMPLES.md # Usage examples
|
||||
└── README.md # This file
|
||||
```
|
||||
|
||||
## Requirements
|
||||
@@ -164,39 +183,51 @@ This plugin is licensed under the GPL v2 or later.
|
||||
|
||||
## Changelog
|
||||
|
||||
### Version 1.0.0 - 2025-12-21
|
||||
### Version 1.1.20 - 2025-12-23
|
||||
|
||||
#### Compatibility Updates
|
||||
**Current Release** - Latest stable version with full WooCommerce Blocks support
|
||||
|
||||
- ✅ Updated for WooCommerce 10.x compatibility
|
||||
- ✅ Updated for WordPress 6.9.x compatibility
|
||||
- ✅ Added HPOS (High-Performance Order Storage) support
|
||||
- ✅ Declared compatibility with WooCommerce Custom Order Tables
|
||||
#### Fixed
|
||||
- **CRITICAL:** WooCommerce Blocks fatal error in mini-cart and cart blocks
|
||||
- Fixed `woocommerce_store_api_product_quantity_editable` filter signature mismatch
|
||||
- Filter now correctly accepts `WC_Product` object instead of cart item array
|
||||
- Resolves "Cannot use object of type WC_Product_Simple as array" fatal error
|
||||
|
||||
#### Security Enhancements
|
||||
#### Technical Details
|
||||
- Updated `block_quantity_editable()` method signature to accept product object
|
||||
- Changed parameter from `$cart_item` array to `WC_Product $product`
|
||||
- Uses `$product->get_id()` instead of array access for product ID
|
||||
- Full compatibility with WooCommerce Store API and block-based cart/checkout
|
||||
|
||||
- ✅ Added nonce verification for product meta save operations
|
||||
- ✅ Added capability checks for user permissions
|
||||
- ✅ Enhanced data escaping and sanitization
|
||||
- ✅ Implemented autosave prevention
|
||||
### Recent Major Updates
|
||||
|
||||
#### Code Improvements
|
||||
#### Version 1.1.7 - Enhanced Tier Pricing
|
||||
- Added optional text labels for tier pricing
|
||||
- Clickable tier rows that auto-populate quantity field
|
||||
- Add to Cart button auto-disable when quantity is invalid
|
||||
|
||||
- ✅ Enhanced cart object validation
|
||||
- ✅ Improved product object type checking
|
||||
- ✅ Better error handling for edge cases
|
||||
- ✅ Updated data storage methods for cart items
|
||||
- ✅ Modernized JavaScript localization with proper escaping
|
||||
#### Version 1.1.4 - WooCommerce Blocks Support
|
||||
- Full support for WooCommerce block-based cart and checkout
|
||||
- Quantity restrictions work with both classic and block carts
|
||||
- Enhanced "View Options" button styling
|
||||
|
||||
#### Initial Features
|
||||
#### Version 1.1.0 - Package Quantity Restrictions
|
||||
- Global and per-product package quantity restrictions
|
||||
- Prevents customers from ordering non-package quantities
|
||||
- Automatic quantity field hiding when restrictions enabled
|
||||
|
||||
- Initial release with tier pricing functionality
|
||||
- Package pricing with fixed quantities
|
||||
- Customizable pricing tables
|
||||
- Global settings page
|
||||
- Product-level configuration
|
||||
- Cart integration with dynamic pricing
|
||||
- Responsive frontend design
|
||||
#### Version 1.0.1 - Twig Template Engine
|
||||
- Migrated to Twig templating system
|
||||
- Enhanced security with automatic HTML escaping
|
||||
- Added German (Switzerland, Informal) translation
|
||||
|
||||
#### Version 1.0.0 - Initial Release
|
||||
- Tier pricing functionality (quantity-based discounts)
|
||||
- Package pricing functionality (fixed-price bundles)
|
||||
- WooCommerce HPOS compatibility
|
||||
- Multilingual support (English, German)
|
||||
|
||||
For complete version history, see [CHANGELOG.md](CHANGELOG.md)
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
Reference in New Issue
Block a user