card drawer show amount for free delivery
parent
294b47f913
commit
566403ebd8
|
@ -1471,9 +1471,15 @@
|
||||||
"settings": [
|
"settings": [
|
||||||
{
|
{
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"id": "free_shipping_threshold",
|
"id": "shx_free_shipping_threshold",
|
||||||
"label": "Shx Mindestbestellwert für kostenfreien Versand",
|
"label": "Shx Mindestbestellwert für kostenfreien Versand",
|
||||||
"default": 1000
|
"default": 1000
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "number",
|
||||||
|
"id": "shx_shipping_costs",
|
||||||
|
"label": "Shx Versandkosten, wenn unter Mindestbestellwert für kostenfreien Versand ist",
|
||||||
|
"default": 399
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,18 +73,18 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% assign free_shipping_threshold = settings.free_shipping_threshold %}
|
{% assign free_shipping_threshold = settings.shx_free_shipping_threshold %}
|
||||||
{% assign total_price = cart.total_price %}
|
{% assign total_price = cart.total_price %}
|
||||||
{% assign remaining_amount = free_shipping_threshold | minus: total_price %}
|
{% assign remaining_amount = free_shipping_threshold | minus: total_price %}
|
||||||
|
|
||||||
<span>price6 {{ total_price | money }} {{ free_shipping_threshold }}</span>
|
<span>price6 {{ total_price | money }} {{ free_shipping_threshold }}</span>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
console.log("cart11", {{ cart | json }}, {{ remaining_amount }}, {{ free_shipping_threshold }})
|
console.log("cart12", {{ cart | json }}, {{ remaining_amount }}, {{ free_shipping_threshold }})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% if total_price < free_shipping_threshold %}
|
{% if total_price < free_shipping_threshold %}
|
||||||
<span style="font-size: 14px;">Noch {{ remaining_amount | money }} bis kostenfreiem Versand (sonst 3,99 €)</span>
|
<span style="font-size: 14px;">Noch {{ remaining_amount | money }} bis kostenfreiem Versand (sonst {% settings.shx_shipping_costs %})</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<cart-drawer-items
|
<cart-drawer-items
|
||||||
|
|
Loading…
Reference in New Issue