Why is the pricing on my product showing twice?

hi for the first few weeks everything was running smoothly on my store but now the pricing on my product is showing twice.

I have been trying to go through the code and find the error but haven’t had any success yet. Please help!

This is the code for my product.template liquid:

{% assign current_variant = product.selected_or_first_available_variant %}
{% assign featured_image = current_variant.featured_image | default: product.featured_image %}

{% assign on_sale = false %}

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

{% assign sold_out = true %}

{% if current_variant.available %}
{% assign sold_out = false %}
{% endif %}

{% capture variantStatus %}
{% if sold_out == true %}
variant-soldout
{% else %}
variant-available
{% endif %}
{% endcapture %}

{%- assign enable_zoom = section.settings.enable_zoom -%}
{%- assign product_image_zoom_size = ‘1024x1024’ -%}
{%- assign product_image_scale = ‘2’ -%}

{% capture product_header_layout %}
{% if section.settings.product_vendor %}

{{ product.vendor }}

{% endif %}

{% if settings.review_badge == ‘review_badge_above’ %}
{% include ‘review-badge’, badge_template: ‘product’ %}
{% endif %}

{% if template != "product" %} {% endif %}

{% unless section_onboarding %}
{{ product.title }}
{% else %}
{{ title }}
{% endunless %}

{% if template != “product” %}

{% endif %}

{% if settings.review_badge == ‘review_badge_under’ %}
{% include ‘review-badge’, badge_template: ‘product’ %}
{% endif %}
{% endcapture %}

{{ product_header_layout }}

{% if section_onboarding %}
{{ ‘product-1’ | placeholder_svg_tag: ‘placeholder-svg’ }}
{% else %}
{% capture img_id_class %}product-single__photo-{{ featured_image.id }}{% endcapture %}
{% capture zoom_img_id %}FeaturedImageZoom-{{ featured_image.id }}-{{ image.id }}{% endcapture %}
{% capture wrapper_id %}ProductImageWrapper-{{ featured_image.id }}{% endcapture %}

{% comment %}
Display current variant image
{% endcomment %}

{% assign img_url = featured_image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %} {{ featured_image.alt | escape }} {{ featured_image.alt | escape }}
{% endif %}

{% comment %}
Display variant image
{% endcomment %}

{% for image in product.images %}
{% unless image contains featured_image %}
{% capture img_id_class %}product-single__photo-{{ image.id }}{% endcapture %}
{% capture zoom_img_id %}FeaturedImageZoom-{{ section.id }}-{{ image.id }}{% endcapture %}
{% capture wrapper_id %}ProductImageWrapper-{{ image.id }}{% endcapture %}

{% assign img_url = image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %} {{ image.alt | escape }} {{ image.alt | escape }}
{% endunless %} {% endfor %}

{% if product.images.size > 1 %}

{% for image in product.images %} {% unless image contains featured_image %} {% endunless %} {% endfor %}
{% endif %}
{{ product_header_layout }}
{% if section_onboarding %} {{ price | money }} {% else %} {% if on_sale %} {{ 'products.general.regular_price' | t }} {{ current_variant.compare_at_price | money }} {{ 'products.general.sale_price' | t }} {% else %} {{ 'products.general.regular_price' | t }} {{ 'products.general.sale_price' | t }} {% endif %}

<span id=“ProductPrice”
class=“product-single__price{% if on_sale %} on-sale{% endif %}”
itemprop=“price”
content=“{{ current_variant.price | divided_by: 100.00 }}”
{% unless current_variant.available %}aria-hidden=“true”{% endunless %}>
{{ current_variant.price | money }}

{% endif %}
{% if settings.position_currency_converter == “product” %}{% include “currency-selector” %}{% endif %}

{% if section_onboarding %}

{{ 'products.product.sold_out' | t }}
{% else %} {% capture "form_classes" %} product-single__form{% if product.has_only_default_variant %} product-single__form--no-variants{% endif %} {%- endcapture %}

{% capture “form_id” %}AddToCartForm–{{ section.id }}{%- endcapture %}

{% form ‘product’, product, class:form_classes, id:form_id %}
{% unless product.has_only_default_variant %}

{% for option in product.options_with_values %}
{{ option.name | escape }}

{% if section.settings.product_selector == ‘radio’ %}

{% assign option_index = forloop.index %} {% for value in option.values %}

{% assign variant_label_state = true %}
{% if product.options.size == 1 %}
{% unless product.variants[forloop.index0].available %}
{% assign variant_label_state = false %}
{% endunless %}
{% endif %}

<input type=“radio”
{% if option.selected_value == value %} checked=“checked”{% endif %}
{% unless variant_label_state %} disabled=“disabled”{% endunless %}
value=“{{ value | escape }}”
data-index=“option{{ option_index }}”
name=“{{ option.name | handleize }}”
class=“single-option-selector__radio{% unless variant_label_state %} disabled{% endunless %}”
id=“ProductSelect–{{ section.id }}-option-{{ option.name | handleize }}-{{ value | escape }}”>
<label for="ProductSelect–{{ section.id }}-option-{{ option.name | handleize }}-{{ value | escape }}"class=“btn btn–small {% unless variant_label_state %} disabled{% endunless %}”>{{ value | escape }}
{% endfor %}

{% else %} {% endif %}
{% endfor %}
{% endunless %}

{% if section.settings.quantity_enabled %}

{{ 'products.product.quantity' | t }} {% include 'quantity-selector', type:'product' %}
{% endif %}
{% if section.settings.button_cart_icon %} {% endif %} {% if current_variant.available %} {{ 'products.product.add_to_cart' | t }} {% else %} {{ 'products.product.sold_out' | t }} {% endif %} {% if section.settings.enable_payment_button %} {{ form | payment_button }} {% endif %}
{% endform %} {% endif %}

{% unless product.description == blank or section.settings.show_description == false %}

{{ product.description }}
{% endunless %}

{% if section.settings.social_sharing_products %}
{% include ‘social-sharing’, share_title: product.title, share_permalink: product.url, share_image: product %}
{% endif %}

{% if section.settings.show_product_tags %}
{% for tag in product.tags %}
{% if forloop.first %}

{{ 'blogs.article.tags' | t }}: {% endif %} {{ tag }} {% if forloop.last %}
{% endif %} {% endfor %} {% endif %}

{% if template != “product” %}


{{ 'products.product.full_details' | t }} {% endif %}

Hi @kkalo ,

Can you please share with me your store URL so I can check and give you the best solution in this case?
If you can, please add me as a staff (My email: tuanthinhit@gmail.com)

@kkalo Please provide website url and if your store is password protected then also provide password So I will check and provide a solution here.

1 Like

Hello I am facing the same problem. The prices are doubling even when I am clicking on different variations it adds more and more.

Please suggest me the solution.

Hello! Did you find a solution? I am experiencing the same issue!

Thank you