card drawer show amount for free delivery
parent
ee64699f07
commit
04f465a6ec
|
@ -58,6 +58,8 @@ class CartItems extends HTMLElement {
|
|||
}
|
||||
|
||||
onCartUpdate() {
|
||||
console.log("onCartUpdate");
|
||||
|
||||
if (this.tagName === "CART-DRAWER-ITEMS") {
|
||||
fetch(`${routes.cart_url}?section_id=cart-drawer`)
|
||||
.then((response) => response.text())
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
{% endif %}
|
||||
|
||||
<script>
|
||||
console.log("cart31", {{ 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("cart32", {{ 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;">
|
||||
|
|
Loading…
Reference in New Issue