forked from brooksbingham/theme-elegance
fix: add null check in cart-detailed-totals template
parent
8be6271f08
commit
e92622b360
|
@ -24,10 +24,9 @@
|
||||||
*}
|
*}
|
||||||
{block name='cart_detailed_totals'}
|
{block name='cart_detailed_totals'}
|
||||||
<div class="flex flex-col gap-4">
|
<div class="flex flex-col gap-4">
|
||||||
|
|
||||||
<div class="flex flex-col gap-8">
|
<div class="flex flex-col gap-8">
|
||||||
{foreach from=$cart.subtotals item="subtotal"}
|
{foreach from=$cart.subtotals item="subtotal"}
|
||||||
{if $subtotal.value && $subtotal.type !== 'tax'}
|
{if $subtotal && $subtotal.value|count_characters > 0 && $subtotal.type !== 'tax'}
|
||||||
<div class="flex font-medium" id="cart-subtotal-{$subtotal.type}">
|
<div class="flex font-medium" id="cart-subtotal-{$subtotal.type}">
|
||||||
<span class="flex-1 label{if 'products' === $subtotal.type} js-subtotal{/if}">
|
<span class="flex-1 label{if 'products' === $subtotal.type} js-subtotal{/if}">
|
||||||
{if 'products' == $subtotal.type}
|
{if 'products' == $subtotal.type}
|
||||||
|
|
Loading…
Reference in New Issue