Hello,
can someone tell me how to add this modification to the product when its on sale?
How it looks now:
How it should look:
Im using the Brooklyn theme: aliudclothing.com
Thank you!
Kim
Hello,
can someone tell me how to add this modification to the product when its on sale?
How it looks now:
How it should look:
Im using the Brooklyn theme: aliudclothing.com
Thank you!
Kim
Hi @KimGottwald
Go to your Online store > Themes > Edit code > open product-grid-item.liquid, find this line of code
{{ product.price | money_without_trailing_zeros }}
Replace it with this code
{{ product.compare_at_price | money_without_trailing_zeros }}
{{ product.price | money_without_trailing_zeros }}
Save your file
Thank you, sadly also the normal prices are now red, how can I change that?
Please update previous code to this
{% if on_sale %}
{{ product.compare_at_price | money_without_trailing_zeros }}
{{ product.price | money_without_trailing_zeros }}
{% else %}
{{ product.price | money_without_trailing_zeros }}
{% endif %}
Please help.
Please update code like this
{% if on_sale %}
{{ product.compare_at_price | money_without_trailing_zeros }}
{{ product.price | money_without_trailing_zeros }}
{% else %}
{{ product.price | money_without_trailing_zeros }}
{% endif %}