commit | b6096057c6d0d327a65fba09038aaf557fa211b3 | [log] [tgz] |
---|---|---|
author | Britlog <info@britlog.com> | Fri Nov 17 07:11:35 2017 +0100 |
committer | Rushabh Mehta <rmehta@gmail.com> | Fri Nov 17 11:41:35 2017 +0530 |
tree | 0c46078a1afe2dc3e4a82433d2811c54a8fbbf59 | |
parent | 2a89a502f07ef0b5895f1991c3e9cadbd29240db [diff] |
Hide cart icon and badge count after logging out (#11530)
diff --git a/erpnext/public/js/shopping_cart.js b/erpnext/public/js/shopping_cart.js index e4e7440..0a3e0af 100644 --- a/erpnext/public/js/shopping_cart.js +++ b/erpnext/public/js/shopping_cart.js
@@ -65,6 +65,9 @@ set_cart_count: function() { var cart_count = getCookie("cart_count"); + if(frappe.session.user==="Guest") { + cart_count = 0; + } if(cart_count) { $(".shopping-cart").toggleClass('hidden', false);