card drawer show amount for free delivery

main
alexanderroese 2024-06-18 23:06:40 +02:00
parent 7aa27be6e2
commit 0e541a9ea6
1 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@
{% assign free_shipping_threshold = settings.shx_free_shipping_threshold %}
{% assign total_price = cart.total_price %}
{% 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>
@ -84,7 +85,7 @@
</script>
{% if total_price < free_shipping_threshold %}
<span style="font-size: 14px;">Noch {{ remaining_amount | money }} bis kostenfreiem Versand (sonst 3)</span>
<span style="font-size: 14px;">Noch {{ remaining_amount | money }} bis kostenfreiem Versand (sonst {{ shipping_costs }})</span>
{% endif %}
<cart-drawer-items