Fix Was Bug on Product Page

Sometimes products without a compare at price show the was text.

Code Fix

product-page.liquid

Open product-page.liquid and find the following code:
<small class="compare-at-price text-muted"><del>{% include '__localize' with 'was' %} <span class="compare-at-price-field"></span></del></small>
Replace it with
{% if product.compare_at_price_min > product.price %} 
    <small class="compare-at-price text-muted"><del>{% include '__localize' with 'was' %} <span class="compare-at-price-field"></span></del></small>
{% endif %}
 

Leave a comment