Migrate product data from Kirby to Shopify Storefront API
- Add product loaders (product-loader.js, products-list-loader.js) to fetch data from Shopify - Extend Shopify API client with getProductByHandle() and getAllProducts() methods - Integrate Shopify metafields for multilingual support (custom.title_en, custom.description_en) - Refactor product.php and home.php templates to load content dynamically - Simplify product blueprint to minimal routing configuration - Create generic buy-button.php snippet with variant selection - Update footer.php with conditional script loading - Refactor _section--product.scss for better Sass structure - Add translations for loading states and product errors - Clean up old Kirby product content files Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
957cf79e45
commit
ad699f0365
22 changed files with 649 additions and 579 deletions
|
|
@ -0,0 +1,5 @@
|
|||
Title: Éclairages : 12 entretiens et analyses sur les violences d'État
|
||||
|
||||
----
|
||||
|
||||
Uuid: gzshayl6xoefrnsz
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
Title: Éclairages : 12 entretiens et analyses sur les violences d’État
|
||||
|
||||
----
|
||||
|
||||
Shopifyhandle: eclairages-12-entretiens-et-analyses-sur-les-violences-d-etat
|
||||
|
||||
----
|
||||
|
||||
Uuid: gzshayl6xoefrnsz
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
Title: T-shirt Index 01
|
||||
|
||||
----
|
||||
|
||||
Price: 35
|
||||
|
||||
----
|
||||
|
||||
Description: <p>T-shirt de soutien à Index, 100% coton</p>
|
||||
|
||||
----
|
||||
|
||||
Details: <p>Organic cotton t-shirt with screen printing.<br>Print on the front: "INDEX" logo, 10 cm wide.</p><ul><li><p>100% organic cotton</p></li><li><p>Weight: 180 g/m²</p></li><li><p>Single jersey with very soft feel</p></li><li><p>Excellent durability over time</p></li><li><p>Internal neckband</p></li><li><p>Double stitching on sleeves and bottom hem</p></li></ul><p>Shipping only via Mondial Relay to France, Belgium and Switzerland.</p>
|
||||
|
||||
----
|
||||
|
||||
Options:
|
||||
|
||||
-
|
||||
label: Size
|
||||
values: XS, S, M, L, XL
|
||||
|
||||
----
|
||||
|
||||
Snipcartid: tshirt-01
|
||||
|
||||
----
|
||||
|
||||
Backgroundcolor: #ffffff
|
||||
|
||||
----
|
||||
|
||||
Template: product
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
Title: T-shirt Index 01
|
||||
|
||||
----
|
||||
|
||||
Price: 35
|
||||
|
||||
----
|
||||
|
||||
Stock: 10
|
||||
|
||||
----
|
||||
|
||||
Description: T-shirt de soutien à Index, 100% coton
|
||||
|
||||
----
|
||||
|
||||
Details: <p>T-shirt en coton organique avec impression sérigraphique.<br>Marquage sur la face avant : logo « INDEX » de 10 cm de large.</p><ul><li><p>100 % coton biologique</p></li><li><p>Grammage : 180 g/m²</p></li><li><p>Jersey simple au toucher très doux</p></li><li><p>Excellente tenue dans le temps</p></li><li><p>Bande de propreté intérieure au col</p></li><li><p>Surpiqûres doubles en bas de manches et en bas de corps</p></li></ul><p>Envoi uniquement via Mondial Relay vers la France, la Belgique et la Suisse.</p>
|
||||
|
||||
----
|
||||
|
||||
Hasoptions: true
|
||||
|
||||
----
|
||||
|
||||
Optionlabel: Taille
|
||||
|
||||
----
|
||||
|
||||
Optionvalues: XS, S, M, L, XL
|
||||
|
||||
----
|
||||
|
||||
Options:
|
||||
|
||||
-
|
||||
label: Taille
|
||||
values: XS, S, M, L, XL
|
||||
-
|
||||
label: Couleur
|
||||
values: Rouge, Vert
|
||||
|
||||
----
|
||||
|
||||
Snipcartid: tshirt-01
|
||||
|
||||
----
|
||||
|
||||
Backgroundcolor: #ffffff
|
||||
|
||||
----
|
||||
|
||||
Template: product
|
||||
|
||||
----
|
||||
|
||||
Uuid: udrrfizhayqixfoo
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 262 KiB |
|
|
@ -1,9 +0,0 @@
|
|||
Sort: 1
|
||||
|
||||
----
|
||||
|
||||
Uuid: elxkhcta8dkjhr60
|
||||
|
||||
----
|
||||
|
||||
Template: image
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 MiB |
|
|
@ -1,9 +0,0 @@
|
|||
Sort: 2
|
||||
|
||||
----
|
||||
|
||||
Uuid: deupkqq83jvloz0r
|
||||
|
||||
----
|
||||
|
||||
Template: image
|
||||
5
content/2_t-shirt-index/product.en.txt
Normal file
5
content/2_t-shirt-index/product.en.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Title: T-shirt Index
|
||||
|
||||
----
|
||||
|
||||
Uuid: qq27mjjpethsvnwp
|
||||
9
content/2_t-shirt-index/product.fr.txt
Normal file
9
content/2_t-shirt-index/product.fr.txt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Title: T-shirt Index
|
||||
|
||||
----
|
||||
|
||||
Shopifyhandle: t-shirt-index-01
|
||||
|
||||
----
|
||||
|
||||
Uuid: qq27mjjpethsvnwp
|
||||
Loading…
Add table
Add a link
Reference in a new issue