Fix: imatges productes servides des d'img.treblarella.org

products.php reprefixava les URLs dels Sheets cap a
kapvoe-portfoli.treblarella.org/assets/products, on 15 imatges no
existeixen (404). Ara apunta a img.treblarella.org, on totes 35
imatges existeixen i es serveixen correctament.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 06:58:28 +00:00
parent 26bba6ffa2
commit 73d39b49ea
+1 -1
View File
@@ -111,7 +111,7 @@ function normalizeProduct(array $p): array
'category' => normalizeText($p['category'] ?? $p['CATEGORIA'] ?? $p['CATEGORY'] ?? ''),
'colors' => normalizeText($p['colors'] ?? $p['COLORS'] ?? $p['VIDRE'] ?? ''),
'description' => normalizeText($p['description'] ?? $p['DESCRIPCIO'] ?? $p['DESCRIPTION'] ?? ''),
'image_url' => $filename ? "https://kapvoe-portfoli.treblarella.org/assets/products/$filename" : '',
'image_url' => $filename ? "https://img.treblarella.org/assets/products/$filename" : '',
'stock' => normalizeStock($p['stock'] ?? $p['STOCK'] ?? 0),
'top_vendes' => normalizeBool($p['top_vendes'] ?? $p['TOP_VENDES'] ?? false),
'europe_price_number' => $priceNumber,