All product Prices suddenly changed to 1 price

Highlighted
Excursionist
22 1 1

I don't know what happened. All products are suddenly set to 1 price. 5 days ago i had multi currency app installed. it was all good. When this problem occurred, i deleted it. but prices are still the same. i tried to change them, they won't change!

 

https://happyhomefactory.net/

 

Any help is much appreciated. 

0 Likes
Excursionist
47 5 6

It looks like the prices are correct when you open single product page.

i can't determine the cause of this issue unless i check the code and see if this app you installed changed the code. 

H. Azzam
0 Likes
Excursionist
22 1 1

@H_Azzam 

 

I see the price is 1999 but i dont know what to type to change it back to normal 

<!-- snippet/product-price.liquid -->
{% if variant.title %}
  {%- assign compare_at_price = variant.compare_at_price -%}
  {%- assign price = 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 and compare_at_price > price %} price--on-sale{% endif %}{% if available and variant.unit_price_measurement %} price--unit-available{% endif %}" data-price>

  {% if section.settings.show_vendor %}
    <div class="price__vendor">
      <dt>
        <span class="visually-hidden">{{ 'products.product.vendor' | t }}</span>
      </dt>
      <dd>
        {{ product.vendor }}
      </dd>
    </div>
  {% endif %}

  <div class="price__regular">
    <dt>
      <span class="visually-hidden visually-hidden--inline">{{ 'products.product.regular_price' | t }}</span>
    </dt>
    <dd>
      {% if available %}
        {% if compare_at_price > price %}
          <s class="price-item price-item--regular" data-regular-price>
            {{ compare_at_price | money }}
          </s>
        {% else %}
          <span class="price-item price-item--regular" data-regular-price>
            {{ money_price }}
          </span>
        {% endif %}
      {% else %}
        <span class="price-item price-item--regular" data-regular-price>
          {{ 'products.product.sold_out' | t }}
        </span>
      {% endif %}
    </dd>
  </div>
  <div class="price__sale">
    <dt>
      <span class="visually-hidden visually-hidden--inline">{{ 'products.product.sale_price' | t }}</span>
    </dt>
    <dd>
      <span class="price-item price-item--sale" data-sale-price>
        {{ money_price }}
      </span>
      <span class="price-item__label" aria-hidden="true">{{ 'products.product.on_sale' | t }}</span>
    </dd>
  </div>
  <div class="price__unit">
    <dt>
      <span class="visually-hidden visually-hidden--inline">{{ 'products.product.unit_price_label' | t }}</span>
    </dt>
    <dd class="price-unit-price">
      {%- capture unit_price_separator -%}
        <span aria-hidden="true">/</span><span class="visually-hidden">{{ 'general.accessibility.unit_price_separator' | t }}&nbsp;</span>
      {%- endcapture -%}
      {%- capture unit_price_base_unit -%}
        <span data-unit-price-base-unit>
          {%- if available and variant.unit_price_measurement -%}
            {%- if variant.unit_price_measurement.reference_value != 1 -%}
              {{- variant.unit_price_measurement.reference_value -}}
            {%- endif -%}
            {{ variant.unit_price_measurement.reference_unit }}
          {%- endif -%}
        </span>
      {%- endcapture -%}

      <span data-unit-price>{{ variant.unit_price | money }}</span>{{- unit_price_separator -}}{{- unit_price_base_unit -}}
    </dd>
  </div>
</dl>
0 Likes
New Member
4 0 0

Add this

{% if variant.title %}
  {%- assign compare_at_price = variant.compare_at_price -%}
  {%- assign price = variant.price -%}
  {%- assign available = variant.available -%}
{% else %}
 {%- assign compare_at_price = variant.compare_at_price -%} 
{%- assign price = variant.price -%}
{%- assign available = variant.available -%} {% endif %} {%- assign money_price = price | money -%}
<dl class="price{% if available and compare_at_price > price %} price--on-sale{% endif %}{% if available and variant.unit_price_measurement %} price--unit-available{% endif %}" data-price> {% if section.settings.show_vendor %} <div class="price__vendor"> <dt> <span class="visually-hidden">{{ 'products.product.vendor' | t }}</span> </dt> <dd> {{ product.vendor }} </dd> </div> {% endif %} <div class="price__regular"> <dt> <span class="visually-hidden visually-hidden--inline">{{ 'products.product.regular_price' | t }}</span> </dt> <dd> {% if available %} {% if compare_at_price > price %} <s class="price-item price-item--regular" data-regular-price> {{ compare_at_price | money }} </s> {% else %} <span class="price-item price-item--regular" data-regular-price> {{ money_price }} </span> {% endif %} {% else %} <span class="price-item price-item--regular" data-regular-price> {{ 'products.product.sold_out' | t }} </span> {% endif %} </dd> </div> <div class="price__sale"> <dt> <span class="visually-hidden visually-hidden--inline">{{ 'products.product.sale_price' | t }}</span> </dt> <dd> <span class="price-item price-item--sale" data-sale-price> {{ money_price }} </span> <span class="price-item__label" aria-hidden="true">{{ 'products.product.on_sale' | t }}</span> </dd> </div> <div class="price__unit"> <dt> <span class="visually-hidden visually-hidden--inline">{{ 'products.product.unit_price_label' | t }}</span> </dt> <dd class="price-unit-price"> {%- capture unit_price_separator -%} <span aria-hidden="true">/</span><span class="visually-hidden">{{ 'general.accessibility.unit_price_separator' | t }}&nbsp;</span> {%- endcapture -%} {%- capture unit_price_base_unit -%} <span data-unit-price-base-unit> {%- if available and variant.unit_price_measurement -%} {%- if variant.unit_price_measurement.reference_value != 1 -%} {{- variant.unit_price_measurement.reference_value -}} {%- endif -%} {{ variant.unit_price_measurement.reference_unit }} {%- endif -%} </span> {%- endcapture -%} <span data-unit-price>{{ variant.unit_price | money }}</span>{{- unit_price_separator -}}{{- unit_price_base_unit -}} </dd> </div> </dl>

 

0 Likes
Excursionist
22 1 1

@SharmaRahul 

i tried the code. but now they're all set to sold out.

0 Likes
Excursionist
47 5 6

the error is not in this snippet this is snippet is used across the website for displaying the price and since the price is correct in the single product page then this snippet has nothing wrong with it.

i think it's due to the app you installed and when you uninstalled it, it left some left over files.

because when i checked the console i found this message

Bold MultiCurrency: This shop is disabled

 

so the plugin files are still there

H. Azzam
0 Likes
Excursionist
22 1 1

@H_Azzam 

any idea how to fully delete it and get things  back on track? 

 

 

0 Likes
Excursionist
47 5 6

it has to be manually removed, i have worked with a client that had a similar issue before he installed an app and it caused some issues in the cart functionality and i had to manually remove all the app files and fix the errors.

 

H. Azzam
0 Likes
New Member
4 0 0

Add this.It should fix.

{% if variant.title %}
  {%- assign compare_at_price = variant.compare_at_price -%}
  {%- assign price = 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 and compare_at_price > price %} price--on-sale{% endif %}" data-price>

  {% if section.settings.show_vendor %}
    <div class="price__vendor">
      <dt>
        <span class="visually-hidden">{{ 'products.product.vendor' | t }}</span>
      </dt>
      <dd>
        {{ product.vendor }}
      </dd>
    </div>
  {% endif %}

  <div class="price__regular">
    <dt>
      <span class="visually-hidden visually-hidden--inline">{{ 'products.product.regular_price' | t }}</span>
    </dt>
    <dd>
      <span class="price-item price-item--regular" data-regular-price>
        {% if available %}
          {% if compare_at_price > price %}
            {{ compare_at_price | money }}
          {% else %}
            {{ money_price }}
          {% endif %}
        {% else %}
          {{ 'products.product.sold_out' | t }}
        {% endif %}
      </span>
    </dd>
  </div>
  <div class="price__sale">
    <dt>
      <span class="visually-hidden visually-hidden--inline">{{ 'products.product.sale_price' | t }}</span>
    </dt>
    <dd>
      <span class="price-item price-item--sale" data-sale-price>
        {{ money_price }}
      </span>
      <span class="price-item__label" aria-hidden="true">{{ 'products.product.on_sale' | t }}</span>
    </dd>
  </div>
</dl>
0 Likes
Excursionist
22 1 1

@SharmaRahul 

i did... all prices went back to 19.99 again

0 Likes