mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
[fixes] display cart count only if item exist in cart
This commit is contained in:
@@ -28,17 +28,7 @@ def update_website_context(context):
|
||||
cart_enabled = is_cart_enabled()
|
||||
context["shopping_cart_enabled"] = cart_enabled
|
||||
|
||||
# if cart_enabled:
|
||||
# post_login = [
|
||||
# {"label": _("Cart"), "url": "cart", "class": "cart-count"},
|
||||
# {"class": "divider"}
|
||||
# ]
|
||||
# context["post_login"] = post_login + context.get("post_login", [])
|
||||
|
||||
def update_my_account_context(context):
|
||||
if is_cart_enabled():
|
||||
context["my_account_list"].append({"label": _("Cart"), "url": "cart"})
|
||||
|
||||
context["my_account_list"].extend([
|
||||
{"label": _("Orders"), "url": "orders"},
|
||||
{"label": _("Invoices"), "url": "invoices"},
|
||||
|
||||
Reference in New Issue
Block a user