You've already forked wc-tier-and-package-prices
Update CLAUDE.md with v1.2.5 implementation learnings
- Marked both v1.2.5 enhancements as completed - Added implementation details for CSS :has() pseudo-class for hiding empty table headers - Documented parent product default pricing fallback pattern - Added helper method documentation (get_packages_with_fallback, is_restriction_enabled) - Reorganized roadmap section (completed v1.2.5 enhancements moved from planned) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
10
CLAUDE.md
10
CLAUDE.md
@@ -759,11 +759,15 @@ Roadmap for the upcoming development.
|
||||
|
||||
2. ~~Bug 2 in v1.2.3: Increase the margin between checkbox and label and put the help icon right next to the label, not at the right border~~ ✅ **FIXED in v1.2.4** - Increased checkbox right margin from 8px to 12px. Repositioned help tip icon to display inline right next to the label text using flexbox layout with `display: inline-flex`, removing float positioning that caused it to appear at the right edge.
|
||||
|
||||
##### Planned Enhancements for v1.2.5+
|
||||
##### Enhancements (Completed in v1.2.5)
|
||||
|
||||
1. Hide the table-headers in admin area until a tier or respectivly a package price is defined.
|
||||
1. ~~Hide the table-headers in admin area until a tier or respectivly a package price is defined.~~ ✅ **COMPLETED in v1.2.5** - Added CSS `:has()` pseudo-class selectors to automatically hide table headers when tbody is empty. Creates a cleaner interface showing only the helpful empty state message and "Add" button when no pricing rules are configured.
|
||||
|
||||
2. Make it possible to define tier or package prices on variable products in the parent product as a default for that product and all variants of it unless a variant has its own tier or package prices.
|
||||
2. ~~Make it possible to define tier or package prices on variable products in the parent product as a default for that product and all variants of it unless a variant has its own tier or package prices.~~ ✅ **COMPLETED in v1.2.5** - Implemented parent product default pricing with automatic fallback. Variable products can define tier/package pricing once at parent level; variations inherit these defaults unless they have their own specific pricing. Added helper methods in cart class and updated all pricing/restriction checks to support parent fallback.
|
||||
|
||||
##### Planned Enhancements for v1.2.6+
|
||||
|
||||
1. Create different, selectable templates for tierprices and packages to use in the frontend. Make the new templates selectable globally on the settings-page, not per product.
|
||||
|
||||
### When Debugging Cart Issues
|
||||
|
||||
|
||||
Reference in New Issue
Block a user