Merge pull request #17687 from rohitwaghchaure/set_default_warehouse_from_the_stock_settings_develop

fix: item group not disaplying in the website if shopping cart is disabled
This commit is contained in:
rohitwaghchaure 2019-05-22 13:23:44 +05:30 committed by GitHub
commit 8529cde0f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,8 +113,9 @@ def get_product_list_for_group(product_group=None, start=0, limit=10, search=Non
data = frappe.db.sql(query, {"product_group": product_group,"search": search, "today": nowdate()}, as_dict=1)
data = adjust_qty_for_expired_items(data)
for item in data:
set_product_info_for_website(item)
if cint(frappe.db.get_single_value("Shopping Cart Settings", "enabled")):
for item in data:
set_product_info_for_website(item)
return data