Price Don't Update On Product Page

New Member
7 0 0

Good Afternoon,

 

I have a problem on product page because when i change the variant from small/red  to small/blue the price on product page don't change but when i  add to my cart and i go back to the product page the price has changed from the wrong one to the correct one can any one give me a hit please?? 

Capturar6.PNGCapturar7.PNGCapturar8.PNGCapturar9.PNG

 

i will leave here my product-price.liquid code if needed

 

{% if variant.title  %}
  {%- assign compare_at_price = variant.compare_at_price -%}
  {%- assign price = current_variant.price -%}
  {%- assign available = variant.available -%}
{% else %}
  {%- assign compare_at_price = 1999 -%}
  {%- assign price = 1999 -%}
  {%- assign available = true -%}
{% endif %}

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

<dl class="price
  {% if available == false %} price--sold-out {% endif %}
  {% if available and compare_at_price > price %} price--on-sale {% endif %}
  {% if available and variant.unit_price_measurement %} price--unit-available {% endif %}"
  data-price
>


   <div class="price__regular">
    <dd>
      <span class="price-item price-item--regular" data-regular-price>
        {{ money_price }}
      </span>
    </dd>
  </div>
  
</dl>

i want to thanks in advance for the ones could help me .

 

Best Regards

0 Likes