Hello all,
Been trying to add a second discount/sale label that would appear in product cards, since for some products we want to keep the default “Sale”, and for other products we have suppliers that provide rebates, and they would strongly prefer having not having “Sale” verbiage. I’ve tried a few different ways of selecting these different products, to no avail. Here is the code I currently have:
{%- elsif card_product.compare_at_price > card_product.price and card_product.available and card_product.tags contains 'NEW' -%}
<span
id="Badge-{{ section_id }}-{{ card_product.id }}"
class="badge badge--bottom-left color-{{ settings.rebate_badge_color_scheme }}"
>
{{- 'products.product.rebate' | t -}}
</span>
This is in card-product.liquid, nestled between what adds the “Sold Out” and “Sale” labels. I have already added products.product.rebate to en.default, and have rebate_badge_color_scheme defined as something different than the sale color scheme, but neither appear to change on the website. If someone could let me know what I’m doing wrong, that would be greatly appreciated, thanks!