mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-19 19:37:56 +00:00
Merge branch 'develop' into redisearch-app-install
This commit is contained in:
@@ -163,12 +163,7 @@ def validate_cart_settings(doc=None, method=None):
|
||||
|
||||
|
||||
def get_shopping_cart_settings():
|
||||
if not getattr(frappe.local, "shopping_cart_settings", None):
|
||||
frappe.local.shopping_cart_settings = frappe.get_doc(
|
||||
"E Commerce Settings", "E Commerce Settings"
|
||||
)
|
||||
|
||||
return frappe.local.shopping_cart_settings
|
||||
return frappe.get_cached_doc("E Commerce Settings")
|
||||
|
||||
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
|
||||
Reference in New Issue
Block a user