Pricing in collection page is 0 even if there is an actual value in product page

Highlighted
Tourist
15 0 0

I noticed that when I go to any of my collection page, the price for each product is not showing. Not only that, if I'm going to inspect the page, price is showing as zero. But if I click a particular product which will direct me to the product page, actual price appear.

Here is what is shown in the collection page and product page.

Collection pageCollection pageProduct pageProduct page

Here is the pricing code in both product-card-list.liquid and product-template.liquid.

                       {% if customer %}
                       <tr>
                        <td class="light-grey">Price</td>
                        <td colspan="2"><p class="product-single__price product-single__price-{{ section.id }}{% unless current_variant.available %} product-price--sold-out{% endunless %}">
            {% if current_variant.compare_at_price > current_variant.price %}
                <span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
                <s id="ComparePrice-{{ section.id }}">{{ current_variant.compare_at_price | money }}</s>
                <span class="product-price__price product-price__price-{{ section.id }} product-price__sale product-price__sale--single">
                  <span id="ProductPrice-{{ section.id }}"
                    itemprop="price" content="{{ current_variant.price | divided_by: 100.00 }}">
                    {{ current_variant.price | money }}
                  </span>
                  <span class="product-price__sale-label product-price__sale-label-{{ section.id }}">{{ 'products.product.on_sale' | t }}</span>
                </span>
            {% else %}
              <span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
              <s id="ComparePrice-{{ section.id }}" class="hide">{{ current_variant.compare_at_price | money }}</s>
              <span class="product-price__price product-price__price-{{ section.id }}">
                <span id="ProductPrice-{{ section.id }}"
                  itemprop="price" content="{{ current_variant.price | divided_by: 100.00 }}">
                  {{ current_variant.price | money }}
                </span>
                <span class="product-price__sale-label product-price__sale-label-{{ section.id }} hide">{{ 'products.product.on_sale' | t }}</span>
              </span>
            {% endif %}
          </p></td>
                    </tr>
                        {% endif %}

Hope somebody can help me. Thanks in advance.

0 Likes