fix: Cart buttons not working
- Add cart.js to web bundle
- Hide icon conditionally since now this file loads on every single page
diff --git a/erpnext/public/js/cart.js b/erpnext/public/js/cart.js
index 0c97045..69357ee 100644
--- a/erpnext/public/js/cart.js
+++ b/erpnext/public/js/cart.js
@@ -292,7 +292,9 @@
});
frappe.ready(function() {
- $(".cart-icon").hide();
+ if (window.location.pathname === "/cart") {
+ $(".cart-icon").hide();
+ }
shopping_cart.parent = $(".cart-container");
shopping_cart.bind_events();
});