Hide sale badge on collection page , for Yagi
Hide sale badge on collection page , for product that is automatic discounted on Yagi
This commit is contained in:
@@ -177,6 +177,8 @@
|
|||||||
>
|
>
|
||||||
{{- 'products.product.sold_out' | t -}}
|
{{- 'products.product.sold_out' | t -}}
|
||||||
</span>
|
</span>
|
||||||
|
{%- elsif card_product.metafields.app--168074346497.min_auto_discounted_price.value > 1 -%}
|
||||||
|
<!-- dont show sale badge if product is automatic discounted, generated by Yagi -->
|
||||||
{%- elsif card_product_compare_at_price > card_product_price and card_product.available -%}
|
{%- elsif card_product_compare_at_price > card_product_price and card_product.available -%}
|
||||||
<span
|
<span
|
||||||
id="NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}"
|
id="NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user