No description
- JavaScript 48.4%
- PHP 22.7%
- CSS 13.9%
- HTML 7.5%
- Vue 7.5%
Shopify removed the 'checkoutCreate' mutation (and CheckoutCreateInput type) from the Storefront API. The SPA was built against API 2020-04 and called this mutation directly to start checkout. Result: 'There was an error with the process' alert when clicking Check-Out. Fix: - New Pages Function at /api/shopify-graphql proxies all Storefront GraphQL requests to API 2024-04, with one transformation: when it sees a 'checkoutCreate' mutation it rewrites the request as 'cartCreate' (the modern equivalent) and reshapes the response so the SPA still finds data.checkoutCreate.checkout.webUrl. - Bundle apollo httpEndpoint patched from xchematic-store.myshopify.com to /api/shopify-graphql so all Storefront calls flow through the proxy. Confirmed end-to-end: Add to Cart → Check-Out now redirects to a real Shopify cart URL. |
||
|---|---|---|
| api | ||
| dist-old | ||
| site | ||
| .gitignore | ||
| MIGRATION.md | ||