Hide cart icon and badge count after logging out (#11530)
This commit is contained in:
parent
2a89a502f0
commit
b6096057c6
@ -65,6 +65,9 @@ $.extend(shopping_cart, {
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user