card drawer show amount for free delivery

main
alexanderroese 2024-06-18 23:10:09 +02:00
parent 063852e370
commit f95e6ee4ce
1 changed files with 3 additions and 3 deletions

View File

@ -78,14 +78,14 @@
{% assign remaining_amount = free_shipping_threshold | minus: total_price %}
{% assign shipping_costs = settings.shx_shipping_costs %}
<span>price6 {{ total_price | money }} {{ free_shipping_threshold }}</span>
<script>
console.log("cart14", {{ cart | json }}, {{ remaining_amount }}, {{ free_shipping_threshold }})
</script>
{% if total_price < free_shipping_threshold %}
<span style="font-size: 14px;">Noch {{ remaining_amount | money }} bis kostenfreiem Versand (sonst {{ shipping_costs | money }})</span>
<div style="padding: 12px; background-color: #deecde; text-align: center;">
<span style="font-size: 14px; color: #4B7046">Noch {{ remaining_amount | money }} bis kostenfreiem Versand (sonst {{ shipping_costs | money }})</span>
</div>
{% endif %}
<cart-drawer-items