card drawer show amount for free delivery

main
alexanderroese 2024-06-18 22:35:34 +02:00
parent 9279569ad6
commit de4d96c972
1 changed files with 2 additions and 2 deletions

View File

@ -73,14 +73,14 @@
{% assign free_shipping_threshold = 10 %}
{% assign free_shipping_threshold = 10000 %}
{% assign total_price = cart.total_price %}
{% assign remaining_amount = free_shipping_threshold | minus: total_price %}
<span>price5 {{ total_price | money }} {% render 'shx-shipping-costs' %}</span>
<script>
console.log("cart4", {{ cart | json }}, {{ remaining_amount }})
console.log("cart5", {{ cart | json }}, {{ remaining_amount }})
</script>
{% if total_price < free_shipping_threshold %}