card drawer show amount for free delivery

main
alexanderroese 2024-06-18 22:48:08 +02:00
parent beef94a69a
commit a79832941c
1 changed files with 2 additions and 2 deletions

View File

@ -74,14 +74,14 @@
{% render 'shx-config' %}
{% assign free_shipping_threshold = free_shipping_threshold %}
{% assign free_shipping_threshold = 1000 %}
{% assign total_price = cart.total_price %}
{% assign remaining_amount = free_shipping_threshold | minus: total_price %}
<span>price6 {{ total_price | money }} {{ free_shipping_threshold }}</span>
<script>
console.log("cart7", {{ cart | json }}, {{ remaining_amount }})
console.log("cart8", {{ cart | json }}, {{ remaining_amount }})
</script>
{% if total_price < free_shipping_threshold %}