From b1604a24ed9374dce718aad94a4a849c720beb81 Mon Sep 17 00:00:00 2001 From: sahil28297 <37302950+sahil28297@users.noreply.github.com> Date: Thu, 12 Sep 2019 11:20:55 +0530 Subject: [PATCH] fix(add_to_cart): show add_to_card button only if specific conditions are satisfied (#19007) --- erpnext/templates/generators/item/item_add_to_cart.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/templates/generators/item/item_add_to_cart.html b/erpnext/templates/generators/item/item_add_to_cart.html index f4a31a7e73..2a70d8dbe9 100644 --- a/erpnext/templates/generators/item/item_add_to_cart.html +++ b/erpnext/templates/generators/item/item_add_to_cart.html @@ -27,6 +27,7 @@ {% endif %} {% endif %} + {% if product_info.price and (cart_settings.allow_items_not_in_stock or product_info.in_stock) %}
+ {% endif %} @@ -64,4 +66,4 @@ }); -{% endif %} \ No newline at end of file +{% endif %}