From 0042fda5cc1791f3c008e1c362cba034757fb879 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 bbf3147..33b6ef6 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 %}