From 52f175bb291a7b0fe74cafcfdfc8279853129089 Mon Sep 17 00:00:00 2001 From: Florian Eisenmenger Date: Thu, 5 May 2022 09:45:56 +0200 Subject: [PATCH] check --- .../storefront/component/checkout/offcanvas-cart.html.twig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testsystem/zenitPlatformAtmosSet1/src/Resources/views/storefront/component/checkout/offcanvas-cart.html.twig b/testsystem/zenitPlatformAtmosSet1/src/Resources/views/storefront/component/checkout/offcanvas-cart.html.twig index bc88a69..d32e857 100644 --- a/testsystem/zenitPlatformAtmosSet1/src/Resources/views/storefront/component/checkout/offcanvas-cart.html.twig +++ b/testsystem/zenitPlatformAtmosSet1/src/Resources/views/storefront/component/checkout/offcanvas-cart.html.twig @@ -13,9 +13,10 @@ {% for lineItem in page.cart.lineItems %} {% if lineItem.payload is defined and lineItem.payload.customFields is defined and lineItem.payload.customFields.spwn_discountable_box is defined %} -{# {{dump(lineItem.payload)}}#} {% set customizedProductsCount = customizedProductsCount + lineItem.quantity %} - {% set isProgram = isProgram + lineItem.payload.customFields.custom_weightlossplan_day1_breakfast is defined %} + {% if lineItem.payload.customFields.custom_weightlossplan_day1_breakfast is defined %} + {% set isProgram = isProgram + lineItem.quantity %} + {% endif %} {% endif %} {% endfor %}