From a196281a96b4dc8ca790cd4ec3afe6b274936520 Mon Sep 17 00:00:00 2001 From: Krzysiej Date: Wed, 21 Jan 2026 08:31:54 +0100 Subject: [PATCH] Fix product page not loading --- templates/product.html.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/product.html.twig b/templates/product.html.twig index a6ce4dc..ceef712 100644 --- a/templates/product.html.twig +++ b/templates/product.html.twig @@ -42,13 +42,14 @@ Stock + {% set stock = product.stock().get() %} {% for price in product.price %} {{ price.price | format_currency(product.country.currency, {}, product.country.locale) }} {{ price.lowestProductPrice30Days | format_currency(product.country.currency, {}, product.country.locale) }} {{ price.productStandardPrice | format_currency(product.country.currency, {}, product.country.locale) }} {{ price.created_at }} - {{ (product.stock | findByCreatedAtDate(price.created_at | slice(0,10))).stock ?? '' }} + {{ (stock | findByCreatedAtDate(price.created_at | slice(0,10))).stock ?? '' }} {% endfor %}