PRICES on Product Dashboard & Product Page not same as on /Collections/all $19.99

Solved
Excursionist
16 1 1

Hi folks,

So at 2am and this has got me confused. Just as I thought I had got my Debut them to where I wanted it, I came across this horror.

I have all my dummy products set at $36. This is correct in 'Products Dashboard' and 'individual Products pages'. However then I look at '\collections\all\'  every single product has the price listed at $19.99.

$19.99 is not a price I have ever used so I do not know where it is coming from.

After looking around I found the following:

1. snippet/product-price-liquid has a lot of 1999 prices set at the beginning (possible as some default).

2. When I 'right click and Inspect' the \collections\all page,  I can see the price $19.99 being inserted from somewhere.

3. Possibly not related in 'collection-template.liquid' lines 210 and 255 have $19.99 keyed in. 

 

I wonder if $19.99 was used for testing when the theme was developed?

Anyway I was hoping to get this theme finalised asap, so if anyone has any thoughts they would be most welcome.

 

Shop = https://t8-clothing-co.myshopify.com/collections/all

Password = paifla 

 

Many thanks,

David

0 Likes
Highlighted

Success.

Shopify Partner
503 111 152

@T8 

 

Go to the Theme > Snippets > product-price.liquid file and replace whole code with following:

<!-- snippet/product-price.liquid -->
{% if product.title %}
  {%- assign compare_at_price = product.compare_at_price -%}
  {%- assign price = product.price -%}
  {%- assign price_varies = product.price_varies -%}
  {%- assign available = product.available -%}
{% else %}
  {%- assign compare_at_price = 1999 -%}
  {%- assign price = 1999 -%}
  {%- assign price_varies = false -%}
  {%- assign available = true -%}
{% endif %}

{%- assign money_price = price | money -%}

{% if compare_at_price > price %}

  {% if available %}
    <span class="visually-hidden visually-hidden--inline">{{ 'products.product.regular_price' | t }}</span>
    <s class="product-price__price">{{ compare_at_price | money }}</s>
    <span class="visually-hidden visually-hidden--inline">{{ 'products.product.sale_price' | t }}</span>
    <span class="product-price__price product-price__sale">
      {{ money_price }}
      <span class="product-price__sale-label" aria-hidden="true">{{ 'products.product.on_sale' | t }}</span>
    </span>
  {% else %}
    <span class="product-price__sold-out">{{ 'products.product.sold_out' | t }}</span>
  {% endif %}

{% else %}

  {% if available %}
    <span class="product-price__price">{{ money_price }}</span>
  {% else %}
    <span class="product-price__sold-out">{{ 'products.product.sold_out' | t }}</span>
  {% endif %}

{% endif %}


Cheers,

Tejas

Shopify Expert | skype: tejas.nadpara
- Feel free to contact me on support@hexaecommerce.com regarding any help
- Like and Mark as an Accepted Solution if reply helpful
1 Like
Excursionist
16 1 1

That's fantastic Tejas. It works as it should.

I wonder where that $19.99 was coming from. Any idea?

David

0 Likes