Price and compare at price show same value when there are variants of a product.

Tourist
5 0 1

Can anyone check if there is something missing?

I put everything on sale, but my products with variants, show the sale price for both the price and compare at price. If the product doesn't have any variants it shows up fine.

Heres a screenshot and the code I think that may be missing something? Here is also the link: https://shop.sequoia.ca/collections/lotions-creams/products/sweetgrass-lotion 

screenshot.jpg

 

<span itemprop="price" content="{{ variant.price | money_without_currency | remove: "," }}" class="{% if variant.compare_at_price > variant.price %}sale{% endif %}">
              <span class="current_price {% if product.available == false %}hidden{% endif %}">
                {% if variant.price > 0 %}
                  <span class="money">{{ variant.price | money }}</span>
                {% else %}
                  <span class="money">{{ settings.free_price_text }}</span>
                {% endif %}
              </span>
            </span>
            <span class="was_price">
              {% if variant.price < variant.compare_at_price and variant.available %}
              <span class="money">{{ variant.compare_at_price | money }}</span>
              {% endif %}
              

Any help appreciated on this pre black friday

0 Likes
Tourist
5 0 1

My these is Retina

0 Likes