card drawer show amount for free delivery
parent
f5c2351cdf
commit
c37ecaedac
|
@ -82,7 +82,7 @@
|
|||
{% endif %}
|
||||
|
||||
<script>
|
||||
console.log("cart29", {{ cart | json }}, {{ remaining_amount }}, {{ free_shipping_threshold }}, {{ progress_percentage }}, {{ total_price }}, {{ free_shipping_threshold }}, {{ total_price | times: 100 | divided_by: free_shipping_threshold }})
|
||||
console.log("cart30", {{ 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;">
|
||||
|
@ -140,6 +140,8 @@
|
|||
progressBar.value = percentage;
|
||||
}, 100);
|
||||
};
|
||||
|
||||
console.log("DOMContentLoaded")
|
||||
|
||||
// Initial setting of the progress bar value
|
||||
updateProgressBar({{ progress_percentage }});
|
||||
|
@ -156,6 +158,8 @@
|
|||
|
||||
// Beispielcode, der das benutzerdefinierte Event auslöst
|
||||
function updateCart(cart) {
|
||||
console.log("updateCart", cart)
|
||||
|
||||
// Beispiel für die Aktualisierung des Warenkorbs
|
||||
// Diesen Teil sollten Sie an Ihre Logik zur Warenkorbaktualisierung anpassen
|
||||
fetch('/cart/update.js', {
|
||||
|
|
Loading…
Reference in New Issue