card drawer show amount for free delivery

main
alexanderroese 2024-06-19 09:51:20 +02:00
parent f5c2351cdf
commit c37ecaedac
1 changed files with 5 additions and 1 deletions

View File

@ -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', {