card drawer show amount for free delivery
parent
99fdf6569b
commit
e237669296
|
@ -82,7 +82,7 @@
|
|||
{% endif %}
|
||||
|
||||
<script>
|
||||
console.log("cart23", {{ 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("cart24", {{ 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;">
|
||||
|
@ -95,6 +95,16 @@
|
|||
</span>
|
||||
|
||||
<progress class="shx-shipping-costs-progress" value="{{ progress_percentage }}" max="100"></progress>
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
const progressBar = document.querySelector(".shx-shipping-costs-progress");
|
||||
setTimeout(() => {
|
||||
progressBar.value = {{ progress_percentage }};
|
||||
}, 100); // Kurzes Timeout, um sicherzustellen, dass die Animation abgespielt wird
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue