From 9c3b03ef7ffbceb46a9096e79146b3872c3002d8 Mon Sep 17 00:00:00 2001 From: Krzysiej Date: Tue, 20 Jan 2026 10:09:07 +0100 Subject: [PATCH] Add stock to product. --- templates/productList.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/productList.html.twig b/templates/productList.html.twig index 9aad00d..7890880 100644 --- a/templates/productList.html.twig +++ b/templates/productList.html.twig @@ -23,8 +23,8 @@ {{ product.name }} {{ product.name }} - {% if product.currentStock.stock > 0 %} - stock: {{ product.currentStock.stock }} + {% if product.stock > 0 %} + stock: {{ product.stock }} {% else %} out of stock {% endif %}