Skip to content

Commit

Permalink
fix(e-commerce): shopping cart total quantity (frappe#29076)
Browse files Browse the repository at this point in the history
* fix: shopping cart total quantity

* fix: linter error
  • Loading branch information
dj12djdjs authored and marination committed Feb 1, 2022
1 parent 45fadb5 commit 49cdf9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/e_commerce/shopping_cart/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def set_cart_count(quotation=None):
if cint(frappe.db.get_singles_value("E Commerce Settings", "enabled")):
if not quotation:
quotation = _get_cart_quotation()
cart_count = cstr(len(quotation.get("items")))
cart_count = cstr(cint(quotation.get("total_qty")))

if hasattr(frappe.local, "cookie_manager"):
frappe.local.cookie_manager.set_cookie("cart_count", cart_count)
Expand Down

0 comments on commit 49cdf9b

Please sign in to comment.