From 944dccb70bac9be16216c9e429dca760faaf81a8 Mon Sep 17 00:00:00 2001 From: abhisheks Date: Thu, 30 Nov 2023 21:49:38 +0530 Subject: [PATCH] fix: update condition in cart summary subtotals template --- templates/checkout/_partials/cart-summary-subtotals.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/checkout/_partials/cart-summary-subtotals.tpl b/templates/checkout/_partials/cart-summary-subtotals.tpl index 81ba29a..a4a5938 100644 --- a/templates/checkout/_partials/cart-summary-subtotals.tpl +++ b/templates/checkout/_partials/cart-summary-subtotals.tpl @@ -25,7 +25,7 @@
{foreach from=$cart.subtotals item="subtotal"} - {if $subtotal.value && $subtotal.type !== 'tax'} + {if $subtotal && $subtotal.value|count_characters > 0 && $subtotal.type !== 'tax'}
{$subtotal.label}