From d99ece71e4f4cec735568309b8579b99176e279e Mon Sep 17 00:00:00 2001 From: magdev Date: Tue, 30 Dec 2025 00:28:00 +0100 Subject: [PATCH] Update CLAUDE.md with v1.2.5 implementation learnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- CLAUDE.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index ed2a6e9..80dbae5 100644 --- a/CLAUDE.md +++ b/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