card drawer show amount for free delivery
parent
46394005ed
commit
cda684caa8
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue