Hello,
I trying to do a conditional sentence inside a text block for show or not compare_at_price depending if item has or not discount on feed. But after add following code to text block i can’t save content and doesnt work.
Is for Shopify store.
Code:
{{ item.title }}
{% if item.price < item.compare_at_price %}
{% currency_format item.price %} {% currency_format item.compare_at_price %}
{% else %}
{% currency_format item.price %}
{% endif %}
Can anyone help me?
Thanks a lot, Kae