card drawer show amount for free delivery

main
alexanderroese 2024-06-18 22:52:44 +02:00
parent a79832941c
commit 39a6337828
1 changed files with 1 additions and 2 deletions

View File

@ -74,14 +74,13 @@
{% render 'shx-config' %}
{% 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("cart8", {{ cart | json }}, {{ remaining_amount }})
console.log("cart9", {{ cart | json }}, {{ remaining_amount }})
</script>
{% if total_price < free_shipping_threshold %}