From 096de8a0d58ba2688b6c0d24451bcb711a2a934e Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 20 Aug 2019 19:18:45 +0530 Subject: [PATCH] fix: shopping cart item availability --- erpnext/templates/includes/product_page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/templates/includes/product_page.js b/erpnext/templates/includes/product_page.js index af98fc7987a..237090c6d26 100644 --- a/erpnext/templates/includes/product_page.js +++ b/erpnext/templates/includes/product_page.js @@ -29,7 +29,7 @@ frappe.ready(function() { .html(r.message.product_info.price.formatted_price_sales_uom + "
\ (" + r.message.product_info.price.formatted_price + " / " + r.message.product_info.uom + ")
"); - if(r.message.product_info.in_stock==0) { + if(r.message.product_info.in_stock==0 && r.message.cart_settings.show_stock_availability) { $(".item-stock").html("
{{ _("Not in stock") }}
"); } else if(r.message.product_info.in_stock==1) {