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 %}