mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
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:
@@ -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 = frappe.db.sql(query, {"product_group": product_group,"search": search, "today": nowdate()}, as_dict=1)
|
||||||
data = adjust_qty_for_expired_items(data)
|
data = adjust_qty_for_expired_items(data)
|
||||||
|
|
||||||
for item in data:
|
if cint(frappe.db.get_single_value("Shopping Cart Settings", "enabled")):
|
||||||
set_product_info_for_website(item)
|
for item in data:
|
||||||
|
set_product_info_for_website(item)
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user