fix(add_to_cart): show add_to_card button only if specific conditions are satisfied (#19007)

This commit is contained in:
sahil28297 2019-09-12 11:20:55 +05:30 committed by Nabin Hait
parent e3ef56804c
commit b1604a24ed

View File

@ -27,6 +27,7 @@
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
{% if product_info.price and (cart_settings.allow_items_not_in_stock or product_info.in_stock) %}
<div class="mt-3"> <div class="mt-3">
<a href="/cart" <a href="/cart"
class="btn btn-light btn-view-in-cart {% if not product_info.qty %}hidden{% endif %}" class="btn btn-light btn-view-in-cart {% if not product_info.qty %}hidden{% endif %}"
@ -41,6 +42,7 @@
{{ _("Add to Cart") }} {{ _("Add to Cart") }}
</button> </button>
</div> </div>
{% endif %}
</div> </div>
</div> </div>