Merge branch 'develop' into redisearch-app-install

This commit is contained in:
Marica
2022-04-04 13:27:50 +05:30
committed by GitHub
40 changed files with 828 additions and 358 deletions

View File

@@ -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)