mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
upating shopping_cart.js
This commit is contained in:
@@ -183,9 +183,7 @@ $.extend(shopping_cart, {
|
|||||||
frappe.call({
|
frappe.call({
|
||||||
method: "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.is_cart_enabled",
|
method: "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.is_cart_enabled",
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if (r.message == 0) {
|
$(".shopping-cart").toggleClass('hidden', r.message ? false : true);
|
||||||
$(".shopping-cart").toggleClass('hidden', true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user