From 25a2eef9796840d41f4ee6609e1f4a3d25db0b81 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Fri, 2 Jan 2026 20:37:43 +0100 Subject: [PATCH] fix: improve products page price format and mobile button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use € symbol via Intl.NumberFormat instead of currency code - Make 'Add to Cart' button show icon only on mobile (sm:inline for text) - Add formatPrice() helper for consistent currency formatting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- app/templates/shop/products.html | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/app/templates/shop/products.html b/app/templates/shop/products.html index 43f3a6cb..7c4e2ddf 100644 --- a/app/templates/shop/products.html +++ b/app/templates/shop/products.html @@ -84,13 +84,19 @@

-
-
- - +
+
+ +
-
@@ -201,6 +207,14 @@ document.addEventListener('alpine:init', () => { this.loadProducts(); }, + formatPrice(amount) { + if (!amount && amount !== 0) return ''; + return new Intl.NumberFormat('de-DE', { + style: 'currency', + currency: 'EUR' + }).format(amount); + }, + async addToCart(product) { console.log('[SHOP] Adding to cart:', product);