mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix: Show product page even if cart is not enabled
This commit is contained in:
@@ -13,8 +13,11 @@ from erpnext.utilities.product import get_price, get_qty_in_stock
|
||||
def get_product_info_for_website(item_code):
|
||||
"""get product price / stock info for website"""
|
||||
|
||||
cart_quotation = _get_cart_quotation()
|
||||
cart_settings = get_shopping_cart_settings()
|
||||
if not cart_settings.enabled:
|
||||
return frappe._dict()
|
||||
|
||||
cart_quotation = _get_cart_quotation()
|
||||
|
||||
price = get_price(
|
||||
item_code,
|
||||
|
||||
Reference in New Issue
Block a user