try to fix #997 ,when cart is disabled, it will not show error and it will dedirect to 'contact' page (#8636)
This commit is contained in:
parent
32e453b8eb
commit
7607cc9dfa
@ -315,7 +315,8 @@ def get_party(user=None):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
if not cart_settings.enabled:
|
if not cart_settings.enabled:
|
||||||
return None
|
frappe.local.flags.redirect_location = "/contact"
|
||||||
|
raise frappe.Redirect
|
||||||
customer = frappe.new_doc("Customer")
|
customer = frappe.new_doc("Customer")
|
||||||
fullname = get_fullname(user)
|
fullname = get_fullname(user)
|
||||||
customer.update({
|
customer.update({
|
||||||
|
Loading…
Reference in New Issue
Block a user