fix(add_to_cart): show add_to_card button only if specific conditions are satisfied (#19007)
This commit is contained in:
parent
e3ef56804c
commit
b1604a24ed
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user