mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
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