fix: Cart buttons not working
- Add cart.js to web bundle - Hide icon conditionally since now this file loads on every single page
This commit is contained in:
parent
384e6b559b
commit
f47db26fa6
@ -292,7 +292,9 @@ $.extend(shopping_cart, {
|
||||
});
|
||||
|
||||
frappe.ready(function() {
|
||||
$(".cart-icon").hide();
|
||||
if (window.location.pathname === "/cart") {
|
||||
$(".cart-icon").hide();
|
||||
}
|
||||
shopping_cart.parent = $(".cart-container");
|
||||
shopping_cart.bind_events();
|
||||
});
|
||||
|
@ -1,6 +1,7 @@
|
||||
import "./website_utils";
|
||||
import "./wishlist";
|
||||
import "./shopping_cart";
|
||||
import "./cart";
|
||||
import "./customer_reviews";
|
||||
import "../../e_commerce/product_ui/list";
|
||||
import "../../e_commerce/product_ui/views";
|
||||
|
Loading…
x
Reference in New Issue
Block a user