Fix virtual pages with routes using Page::factory()
All checks were successful
Deploy / Deploy to Production (push) Successful in 6s

Replace page.children:after hook with proper routes implementation.
Product pages are now created dynamically via routes that match
Shopify handles for both French and English versions.

Changes:
- Add routes with Page::factory() for virtual product pages
- Remove hooks approach (not working)
- Clean up old Snipcart webhook routes
- Support FR and EN product URLs

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-01-16 12:53:19 +01:00
parent ade0ed1a67
commit 4489e705b8
2 changed files with 68 additions and 140 deletions

View file

@ -8,7 +8,9 @@
"Bash(curl:*)",
"WebFetch(domain:snipcart.com)",
"Bash(grep:*)",
"Bash(npm run build:*)"
"Bash(npm run build:*)",
"Bash(php test-shopify.php:*)",
"WebFetch(domain:getkirby.com)"
]
}
}