Need help please to display sale prices

Highlighted
New Member
1 0 1

Hello, really hope someone can help, I know other people have posted about the same issue but the resolutions don't seem to work on my theme? It's called Charlotte. When I launch a sale it doesn't display the original price. I've copied and pasted below what is in the product-grid-item section in the theme code under snippets. Would really appreciate any guidance!

 

Many thanks in advance

Sophie

 

{% unless grid_item_width %}
{% assign grid_item_width = 'large--one-quarter medium-down--one-half' %}
{% endunless %}

{% unless image_size %}
{%- assign image_size = '600x600' -%}
{% endunless %}

{% unless current_collection %}
{% assign current_collection = collection %}
{% endunless %}

{% assign on_sale = false %}
{% if product.compare_at_price > product.price %}
{% assign on_sale = true %}
{% endif %}

{% assign sold_out = true %}
{% if product.available %}
{% assign sold_out = false %}
{% endif %}

<div class="grid__item {{ grid_item_width }}{% if sold_out %} sold-out{% endif %}{% if on_sale %} on-sale{% endif %} product-grid">

<a href="{{ product.url | within: current_collection }}" class="product-grid-item">
<div class="product-grid-image">
<div class="product-grid-image--centered">
<img src="{{ product.featured_image.src | img_url: image_size }}"
srcset="{{ product.featured_image.src | img_url: image_size }} 1x, {{ product.featured_image.src | img_url: image_size, scale: 2 }} 2x"
alt="{{ product.featured_image.alt | escape }}">
</div>
</div>

<p><span class="product-title">{{ product.title }} - {{ product.price | money }}</span>
{% if sold_out %}
<br><strong>{{ 'products.product.sold_out' | t }}</strong>
{% endif %}
</p>

{% if section.settings.product_reviews_enable %}
<span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span>
{% endif %}
</a>

</div>

Highlighted

Hello @loverofluxe 

Welcome to the Shopify Community!

This is Jay from Oakleaf Infoway. I am interested to help you and get it out of your from your current challenges.

If you wish to hire me, you can reach me anytime here is my official email Id: jay@oakleafinfoway.com

Thanks

Team, Oakleaf Infoway

Skype: live:.cid.2ca82125d1edaa5f
Email ID: info@oakleafinfoway.com
Website: www.okaleafinfoway.com
0 Likes