card drawer show amount for free delivery

main
alexanderroese 2024-06-19 09:35:47 +02:00
parent 46394005ed
commit cda684caa8
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,7 @@
{% endif %}
<script>
console.log("cart25", {{ 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("cart26", {{ 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;">
@ -97,7 +97,11 @@
<script>
document.addEventListener("DOMContentLoaded", function() {
console.log("DOMContentLoaded")
const progressBar = document.querySelector(".shx-shipping-costs-progress");
console.log("el progressBar", progressBar)
const updateProgressBar = (percentage) => {
progressBar.value = 0;
setTimeout(() => {