[fix] Add to Cart visibility, Customer's Price List in Shopping Cart and Address creation from Shopping Cart

This commit is contained in:
Anand Doshi
2015-07-13 16:23:42 +05:30
parent cf26964deb
commit e6f7ac961f
7 changed files with 29 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ import frappe.defaults
from erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings import is_cart_enabled
def show_cart_count():
if (frappe.db.get_default("shopping_cart_enabled") and
if (is_cart_enabled() and
frappe.db.get_value("User", frappe.session.user, "user_type") == "Website User"):
return True