Commit Graph

59 Commits

Author SHA1 Message Date
ee81de86c2 Add release package v1.1.13 with checksums
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 23:09:33 +01:00
669888817b Bump version to 1.1.13 - fix product retrieval issue
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.13
2025-12-31 23:08:53 +01:00
5564b888fc Fix product retrieval - remove strict stock check and add meta_query relation
- Removed is_in_stock() requirement to show all purchasable products
- Stock status still displayed on frontend, out-of-stock items disabled
- Added 'relation' => 'AND' to meta_query for proper multiple condition handling
- Should fix "No products available" issue

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 23:07:06 +01:00
91aca25169 Add release package v1.1.12 with checksums
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 23:03:57 +01:00
4195fb2651 Bump version to 1.1.12 for variable product fix release
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.12
2025-12-31 22:59:46 +01:00
ba28ae174f Fix variable product variations retrieval
Changed from get_available_variations() to get_children() for more reliable
variation ID retrieval. The previous method returned variation data arrays
which may not have worked correctly in all contexts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:56:07 +01:00
755108a7d3 Add release package v1.1.11 with checksums
Feature release adding variable product support.

Package: wc-composable-product-v1.1.11.zip (414 KB, 379 files)
SHA-256: 214002a28a0426b4d2423f234d1dff63e4a8e58c6301cbd6eaed8db670db88c6
MD5: 63b105311dc1cc8ac67c05528ad02e30

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:53:00 +01:00
85983d5473 Bump version to 1.1.11 - Add variable product support
Feature release adding support for variable products and their variations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.11
2025-12-31 22:51:49 +01:00
252b187600 Add variable product support to product selector
BREAKING CHANGE: Variable products now supported in composable products.

Changes:
- Modified get_available_products() to detect variable products
- Variable products now expand to show all available variations
- Each variation is checked individually for stock and purchasability
- Simple products continue to work as before

This allows customers to select specific variations (e.g., "T-Shirt - Red - Large")
instead of just seeing "T-Shirt" which wasn't selectable.

Fixes the issue where products weren't showing because all products
in the category/tag were variable products.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:48:17 +01:00
8185a77697 Document v1.1.10 session history in CLAUDE.md
Added comprehensive Session 12 documentation covering:
- Two critical bug fixes (admin tabs + frontend empty state)
- Root cause analysis for both issues
- CSS panel hiding solution
- Twig empty state conditional
- Translation updates for all 6 locales
- Key lessons learned about CSS timing and empty states
- Debugging approach and testing recommendations

Fixed markdown linting warnings (MD036, MD032).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:43:37 +01:00
6c2e317230 Add release package v1.1.10 with checksums
Critical bug fixes for admin and frontend issues discovered after v1.1.9.

Package: wc-composable-product-v1.1.10.zip (413 KB, 379 files)
SHA-256: 63bfe97aa9fd98e74750786ed0e1579b069505e85558316f7042787994c856ac
MD5: 271aad47684ee8318a8824861d5fc387

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:40:45 +01:00
58f5329bc4 Bump version to 1.1.10 - Fix admin and frontend critical bugs
Two critical bug fixes after v1.1.9 release:
1. Admin tabs both visible on initial page load
2. Frontend product selector showing no products

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.10
2025-12-31 22:38:42 +01:00
0767016370 Update translations with new empty state message
Added translation for "No products available for selection" message in all 6 locales:
- de_DE (formal): Keine Produkte zur Auswahl verfügbar. Bitte konfigurieren Sie...
- de_DE_informal: ...Bitte konfiguriere...
- de_CH (formal): ...Bitte konfigurieren Sie...
- de_CH_informal: ...Bitte konfiguriere...
- fr_CH: Aucun produit disponible pour la sélection...
- it_CH: Nessun prodotto disponibile per la selezione...

Recompiled all .mo files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:37:51 +01:00
fa7ec0e422 Fix two critical bugs in v1.1.9
Bug 1: Admin - Both General and Composable tabs visible on initial load
- Added explicit display:none to #composable_product_data panel
- Panel now hidden by default, shows only when product-type-composable class is present
- Prevents both tabs showing simultaneously on new product creation

Bug 2: Frontend - No feedback when no products configured
- Added empty state message when products array is empty
- Users now see helpful message instead of blank grid
- Cleared Twig cache to ensure template changes take effect

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:34:46 +01:00
f4d2543d4e Add release package v1.1.9 with checksums
Critical bug fix release - Admin rendering completely broken in v1.1.8.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:22:54 +01:00
9e4513f911 Bump version to 1.1.9 - Fix critical admin rendering bug
Fix overly broad CSS selectors that broke admin tabs in v1.1.8.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.9
2025-12-31 22:21:30 +01:00
4dc7b767a8 Fix admin CSS - tabs disappeared due to overly aggressive selectors
CRITICAL FIX: The previous CSS change used .show_if_composable with !important
which hid ALL elements with that class, including the tab links themselves.

Changes:
- Changed from .show_if_composable to .options_group.show_if_composable
- Changed from .product_data_tabs .composable_options to li.composable_options
- Removed !important flags (not needed with specific selectors)
- Now only hides the general tab option groups, not the tab links

This fixes:
- Missing Composable Options tab in product edit screen
- Fields appearing out of context
- Tab navigation completely broken

The issue was that WooCommerce adds 'show_if_composable' class to BOTH:
1. The tab link (li.composable_options.show_if_composable)
2. The general tab fields (div.options_group.show_if_composable)

Now we specifically target only the option groups, leaving tabs alone.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:16:37 +01:00
f763e35d19 Add release package v1.1.8 with checksums
Package details:
- Size: 411 KB (421,220 bytes)
- Files: 376 (all source + vendor + translations + .mo files)
- Directory structure: wc-composable-product/ (WordPress standard)
- SHA-256: d7d06e2a5d336609249f803b681cdf270dbe60d6fc28bdd6c451c6744d2fdab6
- MD5: 78eee5eee4762c308c5d37d1aac06b04

Release v1.1.8 includes:
- Critical admin rendering bug fix (tab visibility)
- Critical frontend product selector fix (WooCommerce button hiding)
- Critical price localization fix (wc_price integration)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:13:59 +01:00
8b271c90c0 Merge branch 'dev' v1.1.8 2025-12-31 22:12:50 +01:00
0dd4408b23 Bump version to 1.1.8 for release
Version 1.1.8 includes critical UI bug fixes:
- Admin rendering bug (tab visibility)
- Frontend product selector not appearing
- Price formatting localization

Updated CHANGELOG.md with comprehensive v1.1.8 release notes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:12:43 +01:00
7a4a0a0135 Document v1.1.8 bug fixes in session history
Added comprehensive documentation for Session 11 covering three critical UI bug fixes:

1. Admin rendering bug - Fixed CSS specificity for proper tab visibility
2. Frontend product selector not appearing - Added woocommerce_is_purchasable filter
3. Localized price formatting - Implemented full WooCommerce price format support

Documentation includes:
- Detailed root cause analysis for each bug
- Complete code examples showing the fixes
- Links to specific file locations and line numbers
- Key lessons learned about WordPress/WooCommerce integration
- Testing recommendations for verification

Updated "Bugs found" section to mark all three issues as fixed in v1.1.8.

Added note about v1.1.6/v1.1.7 package structure fix (parent directory issue).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:10:01 +01:00
c6a48d6404 Fix critical UI bugs in admin and frontend
Fixes three critical bugs reported in CLAUDE.md:

1. Admin rendering bug - Fixed CSS to prevent both General and Composable
   Options tabs from showing simultaneously on initial page load
   - Enhanced CSS specificity with !important flags
   - Added body.product-type-composable selectors for proper visibility control
   - Hides Composable Options tab by default, shows only when composable type selected

2. Frontend product selector not appearing - Fixed WooCommerce integration
   - Added hide_default_add_to_cart() method to Cart_Handler
   - Hooks woocommerce_is_purchasable filter to return false for composable products
   - This hides WooCommerce's default add-to-cart button
   - Allows our custom product selector to be the only interface

3. Localized price formatting - Implemented proper WooCommerce price formatting
   - Added wc_price Twig function in Plugin.php
   - Updated Product_Selector to pass formatted price HTML to template
   - Added price_format data to JavaScript localization
   - Implemented formatPrice() method in frontend.js
   - Supports all WooCommerce price formats (currency position, decimals, separators)
   - Template now uses {{ fixed_price_html|raw }} and {{ zero_price_html|raw }}
   - JavaScript dynamically formats prices using locale-specific settings

Technical improvements:
- Cart_Handler.php: +14 lines (hide_default_add_to_cart method)
- Plugin.php: +7 lines (wc_price function, price format localization)
- Product_Selector.php: +2 lines (formatted price HTML context)
- templates/product-selector.twig: Modified to use formatted price HTML
- assets/css/admin.css: +24 lines (enhanced tab visibility control)
- assets/js/frontend.js: +28 lines (formatPrice method with WooCommerce format support)

All PHP files pass lint checks. Frontend now properly displays localized prices
with correct currency symbols, decimal separators, and thousand separators for
all WooCommerce-supported locales (CHF for Switzerland, € for Europe, etc.).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:08:08 +01:00
ac1cb9b135 Merge dev to main with corrected v1.1.6 package structure
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:00:19 +01:00
f5bc0d0335 Fix v1.1.6 release package structure for WordPress compatibility
Corrected directory structure to match WordPress plugin standards.
Package now contains wc-composable-product/ parent directory with all files inside.
WordPress will extract to wp-content/plugins/wc-composable-product/ (correct!).

Package size: 410 KB (419,430 bytes)
New SHA-256: fb8f12486f19aef61f6e6ea4af63fe66f64adca66e2d42e1d17e9f05cb82f39f
New MD5: cc8c13780c4e8063c97b8632d0a43adb

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:57:49 +01:00
88a907c4dd Fix v1.1.7 release package structure for WordPress compatibility
CRITICAL FIX: WordPress plugin directory structure

Previous issue:
- ZIP contained files at root level
- WordPress created directory based on ZIP name: wc-composable-product-v1.1.7/
- This caused version-numbered directory in wp-content/plugins/

Corrected structure:
- ZIP now contains wc-composable-product/ parent directory
- All plugin files inside wc-composable-product/ directory
- WordPress extracts to wp-content/plugins/wc-composable-product/ (correct!)

Changes:
- Recreated ZIP with proper directory structure using rsync + zip
- Package size: 410 KB (419,697 bytes) - slightly larger due to parent dir
- New SHA-256: 866e7dd34431f4c881629fd8b59ddd3a27c7a45b7324a3d88cd064a3e01c1b83
- New MD5: 871fbb3b910380c0e43bcf1538408eda

WordPress standard: Plugin ZIP must contain single parent directory named after
the plugin slug, with all files inside that directory.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:56:49 +01:00
03a7624564 Update CLAUDE.md with release package commit information
Added post-release updates section to v1.1.7 documentation:
- Both v1.1.6 and v1.1.7 release packages now committed to repository
- v1.1.6: 378 KB with .po files only (translations won't work)
- v1.1.7: 393 KB with .po + .mo files (translations functional)
- All packages include SHA-256 and MD5 checksums

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:50:54 +01:00
1c3f44f3c2 Add release package v1.1.6 with checksums
Release package for v1.1.6 including:
- Complete admin translations for Fixed Price field (v1.1.4 feature)
- All 6 locales with 56/56 strings translated (.po files)
- Package size: 378 KB (1,092,772 bytes)
- Files included: 370 files

Checksums:
- SHA-256: d64f4f5f1a00d392989cb613780e5726106a08c6aace08e0c74c80553a0b0f1e
- MD5: eae384e342450abd4ac83af0266ac764

Note: This version includes .po translation files but not compiled .mo files.
Users should upgrade to v1.1.7 for functional translations in WordPress.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:48:47 +01:00
287f8b778b Add release package v1.1.7 with checksums
Release package for v1.1.7 including:
- Compiled .mo translation files for all 6 locales
- Critical fix: Translations now display in WordPress admin
- Package size: 393 KB (402,351 bytes)
- Files included: 376 files

Checksums:
- SHA-256: 518d411c8a35fff26f6cd07dd7548dd46dfc2d8452ce3735b96e10cd582bf3fc
- MD5: 2eb25087a470ff2cf7d36490ea34eed9

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:46:28 +01:00
63d8f9ed52 Document v1.1.7 release in CLAUDE.md session history
Added comprehensive documentation for Session 10:
- Critical bug fix: Missing translations due to lack of compiled .mo files
- Root cause analysis: WordPress requires .mo files, not just .po files
- Solution: Compiled all 6 .po files to .mo format using msgfmt
- Release details: v1.1.7 with 393 KB package, 376 files
- Key lessons: .po vs .mo files, WordPress i18n requirements, testing workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:45:14 +01:00
601570d724 Bump version to 1.1.7 for release
- Version 1.1.7 includes compiled .mo translation files
- Critical fix: Translations now display in WordPress admin
- All 6 locales (de_DE, de_DE_informal, de_CH, de_CH_informal, fr_CH, it_CH) fully functional

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.7
2025-12-31 21:35:53 +01:00
e9b2d1c79b Add compiled .mo translation files for all locales
- Compiled 6 .mo files from .po sources (de_DE, de_DE_informal, de_CH, de_CH_informal, fr_CH, it_CH)
- Required for WordPress to load translations in admin and frontend
- All locales now have 56/56 strings translated and compiled

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:33:44 +01:00
d27dd4b7bd Document v1.1.6 release in CLAUDE.md
Added comprehensive session history for v1.1.6 including:
- Translation completion for all 6 locales
- Version bump details
- Release package creation
- Checksums and file counts
- Key lessons learned about translation maintenance

Fixed markdown linting: Added blank line before list

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:20:22 +01:00
1b7c7a0257 Bump version to 1.1.6 for release
Incremented version number to 1.1.6 reflecting admin translation updates.

Changes:
- Version header: 1.1.5 → 1.1.6
- Version constant: 1.1.5 → 1.1.6
- CHANGELOG.md: Added v1.1.6 release notes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.6
2025-12-31 21:16:43 +01:00
4f65c8e5e0 Add missing admin translations for Fixed Price field
Updated all translation files with new strings from v1.1.4:
- Simplified "How to calculate the price" description
- New "Fixed Price" field label
- New "Enter the fixed price for this composable product" description

Translations added to all 6 locales:
- de_DE (German formal): Festpreis / Geben Sie den Festpreis ein
- de_DE_informal (German informal): Festpreis / Gib den Festpreis ein
- de_CH (Swiss German formal): Festpreis / Geben Sie den Festpreis ein
- de_CH_informal (Swiss German informal): Festpreis / Gib den Festpreis ein
- fr_CH (Swiss French): Prix fixe / Entrez le prix fixe
- it_CH (Swiss Italian): Prezzo fisso / Inserisci il prezzo fisso

All admin strings are now fully translated across all supported locales.

Updated CLAUDE.md "Bugs found" section to mark admin translation task as completed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:12:46 +01:00
054617f320 Document v1.1.5 Twig filter bug fix in CLAUDE.md
Added comprehensive session history for v1.1.5 including:
- Root cause analysis of Twig filter vs function mismatch
- Error log evidence and backtrace analysis
- Technical solution with code examples
- Lessons learned about multi-plugin Twig compatibility
- Updated "Bugs found" section marking Twig bug as fixed

Also fixed markdown linting warnings:
- Added blank line before fenced code block
- Added language specification (text) to code fence
- Added blank line around list

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:07:20 +01:00
8fc0614334 Fix critical Twig filter error in product selector template
Fixed "Unknown 'esc_attr' filter" error that occurred when rendering
the product selector template. The issue was caused by WordPress
escaping functions being registered only as Twig functions, not filters.

Changes:
- Added TwigFilter registrations for esc_html, esc_attr, esc_url
- Template now supports both filter syntax (|esc_attr) and function syntax
- Fixes compatibility issues when other plugins use their own Twig instances
- Version bump to 1.1.5

This resolves the bug documented in logs/fatal-errors-2025-12-31.log

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:06:08 +01:00
867abc8f63 Document v1.1.4 session: Fixed price field enhancement
Added session history for v1.1.4 which introduced:
- Fixed price field in Composable Options tab
- JavaScript toggle based on pricing mode selection
- Improved admin UX with progressive disclosure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:01:52 +01:00
818fd51502 Document translation updates in CLAUDE.md v1.1.3 section 2025-12-31 17:36:54 +01:00
392559dedc Update all translation files with missing stock-related strings
Added 8 missing stock management translations to all locales:
- de_DE (German, formal): Stock strings with "auf Lager"
- de_DE_informal (German, informal): Stock strings with "auf Lager"
- de_CH (Swiss German, formal): Stock strings with "an Lager"
- de_CH_informal (Swiss German, informal): Stock strings with "an Lager"
- fr_CH (Swiss French): Stock strings with "en stock/rupture"

All translation files now complete with 55/55 strings:
- "\"%s\" is out of stock and cannot be selected."
- "Only %2$d of \"%1$s\" are available in stock."
- "Stock reduced for \"%1$s\": -%2$d (remaining: %3$d)"
- "Stock restored for \"%1$s\": +%2$d (total: %3$d)"
- "Out of stock"
- "Only"
- "left"
- "In stock"

Note: it_CH already had complete translations from v1.1.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 17:36:13 +01:00
17d5312df3 Add releases/ directory to project structure in CLAUDE.md 2025-12-31 17:27:18 +01:00
037be97ece Update CLAUDE.md with v1.1.3 session history
Session 6 documented:
- WooCommerce HPOS compatibility implementation
- Price calculation conflict resolution
- Compatibility with WooCommerce Analytics and pricing plugins
- User confirmation: "it all works, now"

Key learnings:
- HPOS declaration is critical for modern WooCommerce
- Static flags prevent duplicate hook execution
- Cart item metadata flags for plugin cooperation
- Compatibility testing with common WC extensions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 17:26:21 +01:00
28d2223306 Add release package v1.1.3 with checksums
Release v1.1.3 - WooCommerce HPOS compatibility and pricing fixes

Package contents:
- Complete plugin source code
- Vendor dependencies (Twig)
- Translation files
- Documentation
- Assets (CSS/JS)

Checksums:
- SHA-256: 0ca23ca12570f0e9c518514ffc5209d78c76c3295954d10ec74a28013a762956
- MD5 also included for verification

This release addresses WooCommerce compatibility warnings and prevents
conflicts with WooCommerce Analytics, Update Manager, and third-party
pricing plugins like WooCommerce Tier and Package Prices.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 17:18:48 +01:00
413b5d8acd Add WooCommerce HPOS compatibility and fix pricing conflicts (v1.1.3)
Fixes WooCommerce compatibility warnings reported by user.

WooCommerce HPOS compatibility:
- Added before_woocommerce_init hook to declare HPOS compatibility
- Declares compatibility with custom_order_tables feature
- Ensures plugin works with WooCommerce's modern order storage

Price calculation improvements:
- Added static flag to prevent multiple executions
- Added composable_price_calculated flag to cart items
- Prevents conflicts with third-party pricing plugins
- Stops other plugins from re-calculating composable product prices

This resolves incompatibility warnings with:
- WooCommerce Analytics
- WooCommerce Update Manager
- Third-party pricing extensions

Files modified:
- wc-composable-product.php: Version 1.1.3, HPOS declaration
- includes/Cart_Handler.php: Improved price calculation guards
- CHANGELOG.md: Documented changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.3
2025-12-31 17:11:29 +01:00
8aaf30de99 Update CLAUDE.md with v1.1.1 and v1.1.2 session history
Document the critical bug fix journey for the WC_Settings_Page error:

v1.1.1 session (failed attempt):
- Attempted to fix with hook timing change
- Changed to woocommerce_init hook
- Bug persisted - error logs showed it still failed
- Lesson: Always verify fixes with error logs

v1.1.2 session (successful fix):
- Discovered root cause: Settings.php loaded too early
- require_once happened during Plugin::includes()
- PHP tried to parse 'extends WC_Settings_Page' before class existed
- Solution: Delayed require_once to add_settings_page() callback
- This callback runs when WC has loaded all settings classes

Key learnings documented:
1. Class loading order matters more than hook timing
2. Always verify fixes don't just assume they work
3. Lazy loading pattern for extending third-party classes
4. Read error logs thoroughly - backtrace reveals the sequence
5. Don't assume hook order means all classes are loaded
6. Test immediately after each release

Also documents the debugging approach that worked and the
5-version journey to finally fix this persistent issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 17:03:11 +01:00
18d340d029 Add release package v1.1.2 with checksums
Release v1.1.2 - CRITICAL bug fix for Settings.php class loading

This release fixes the persistent WC_Settings_Page error that affected all previous versions including v1.1.1.

Root cause:
- Settings.php extends WC_Settings_Page
- File was being required during Plugin::includes()
- WC_Settings_Page class didn't exist at that point
- Hook timing changes (v1.0.1, v1.1.1) were insufficient

Solution implemented:
- Removed require_once from Plugin::includes()
- Moved to Plugin::add_settings_page() callback
- Loads on-demand via woocommerce_get_settings_pages filter
- WC_Settings_Page guaranteed to exist at that point

Package contents:
- Plugin source files (v1.1.2)
- Stock management integration (v1.1.0 feature)
- Complete vendor dependencies (Twig 3.0)
- Translation files for 6 locales
- Documentation and changelog

Package size: 383 KB
SHA-256: 191eae035b34ce8b33b90cf9d85ed54e493c1b471cda0efe5c992a512e91cc36

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 17:01:38 +01:00
f1382490ec Fix Settings.php class loading timing issue (v1.1.2)
CRITICAL BUG FIX: v1.1.1 still had the same error!

Root cause analysis:
- v1.1.1 changed hook to woocommerce_init but error persisted
- Real issue: Settings.php was require_once'd in Plugin::includes()
- At that point, class extends WC_Settings_Page which doesn't exist yet
- Even woocommerce_init fires before WC_Settings_Page is loaded

Solution:
- Removed require_once from Plugin::includes() (line 93)
- Moved require_once to Plugin::add_settings_page() (line 196)
- Settings.php now loads on-demand via woocommerce_get_settings_pages filter
- This filter fires when WooCommerce has loaded all settings classes

Changes:
- includes/Plugin.php: Delayed Settings.php inclusion with explanatory comment
- wc-composable-product.php: Version bump to 1.1.2
- CHANGELOG.md: Documented fix and noted v1.1.1 was insufficient

This addresses the actual root cause that persisted through 3 versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.2
2025-12-31 16:59:17 +01:00
f1b255a7f8 Add release package v1.1.1 and reorganize all releases
Release v1.1.1 - Critical bug fix:
- Fixed WC_Settings_Page class loading timing issue
- Changed initialization hook from woocommerce_loaded to woocommerce_init
- Ensures plugin activates correctly without fatal errors

Release organization:
- Moved v1.0.0 and v1.1.0 packages from root to releases/ directory
- Added v1.1.1 release package
- All releases now properly organized in releases/ subdirectory

v1.1.1 Package contents:
- Plugin source files (v1.1.1)
- Stock management integration (v1.1.0 feature)
- Complete vendor dependencies (Twig 3.0)
- Translation files for 6 locales
- Documentation and changelog

v1.1.1 Package details:
- Size: 375 KB
- SHA-256: 761eef69da910ecfdb20ceeed70b5d0381c7cab895e81a040d132cb0f88d749b

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 16:55:37 +01:00
7520a37b05 Fix WC_Settings_Page class loading issue (v1.1.1)
Critical bug fix for settings page initialization:
- Changed hook from woocommerce_loaded to woocommerce_init
- woocommerce_loaded fires before WC_Settings_Page is loaded
- woocommerce_init ensures all WooCommerce core classes are available

This resolves the "Class WC_Settings_Page not found" fatal error
that prevented the plugin from activating successfully.

Version bumped from 1.1.0 to 1.1.1 (patch release).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v1.1.1
2025-12-31 16:50:35 +01:00
7bde9e2f0c Fix Markdown formatting in CLAUDE.md (blank lines around lists)
Applied linter formatting fixes for MD032 compliance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 16:48:41 +01:00
e491dadc67 Update CLAUDE.md with v1.0.1 and v1.1.0 session history
Documentation updates:
- Added v1.0.1 bug fix details (fatal error resolution)
- Comprehensive v1.1.0 stock management documentation
- Updated project structure with Stock_Manager.php
- Enhanced data flow section with order processing
- Documented all 6 key lessons learned from stock implementation
- Updated core classes section with Stock_Manager details
- Removed stock management from limitations (now implemented)

Session 4 (v1.1.0) highlights:
- New Stock_Manager class (263 lines, 6 public methods)
- 8 new translatable strings
- Visual stock indicators with color-coded badges
- Automatic stock deduction/restoration on order status changes
- Order audit trail via WooCommerce order notes
- Technical details: hooks, filters, and meta storage patterns

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 16:48:21 +01:00