card drawer show amount for free delivery

main
alexanderroese 2024-06-18 22:32:39 +02:00
parent f0a37a7f13
commit 4838a6fff9
1 changed files with 2 additions and 2 deletions

View File

@ -72,10 +72,10 @@
</div>
<script>
console.log("cart2", {{ cart | json }})
console.log("cart3", {{ cart | json }})
</script>
{% assign free_shipping_threshold = {% render 'shx-shipping-costs' %} %}
{% assign free_shipping_threshold = 10 %}
{% assign total_price = cart.total_price %}
{% assign remaining_amount = free_shipping_threshold | minus: total_price %}