[fixes] display cart count only if item exist in cart

This commit is contained in:
Saurabh
2016-01-06 18:21:18 +05:30
parent 69f9975748
commit 403ad48364
2 changed files with 2 additions and 13 deletions

View File

@@ -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"},