card drawer show amount for free delivery
parent
5af0886165
commit
5a4a32d85f
|
@ -76,13 +76,13 @@
|
|||
{% assign total_price = cart.total_price %}
|
||||
{% assign remaining_amount = free_shipping_threshold | minus: total_price %}
|
||||
{% assign shipping_costs = settings.shx_shipping_costs %}
|
||||
{% assign progress_percentage = total_price | divided_by: free_shipping_threshold | times: 100 %}
|
||||
{% assign progress_percentage = total_price | times: 100 | divided_by: free_shipping_threshold %}
|
||||
{% if progress_percentage > 100 %}
|
||||
{% assign progress_percentage = 100 %}
|
||||
{% endif %}
|
||||
|
||||
<script>
|
||||
console.log("cart21", {{ cart | json }}, {{ remaining_amount }}, {{ free_shipping_threshold }}, {{ progress_percentage }}, {{ total_price }}, {{ free_shipping_threshold }}, {{ total_price | divided_by: free_shipping_threshold | times: 100 }})
|
||||
console.log("cart22", {{ cart | json }}, {{ remaining_amount }}, {{ free_shipping_threshold }}, {{ progress_percentage }}, {{ total_price }}, {{ free_shipping_threshold }}, {{ total_price | times: 100 | divided_by: free_shipping_threshold }})
|
||||
</script>
|
||||
|
||||
<div style="padding: 12px 12px 0 12px; background-color: #deecde; text-align: center;">
|
||||
|
|
Loading…
Reference in New Issue