e1commerce.com
Ask a question
  • New questions
  • With the answers
  • Unanswered
  1. Home
  2. Out Of Stock Products Showing Incorrect Price - Shopify

160 votes
0 answers

Out Of Stock Products Showing Incorrect Price - Shopify

I am using an app name "Multi country pricing" through which I am showing different prices by location. The app is using products variants for showing different prices by location. Now the problem is prices are showing incorrect when item is out of stock. I have done what I could do but nothing helped. Please help me sort this issue as it's so frustrating. Thanks in advance

Here is the screenshot of my product

reference screenshot (https://i.stack.imgur.com/bOt3n.png)

here's my product-template. liquid code

{% unless settings.breadcrumb_styles == 'none' %}{% include 'breadcrumb' %}{% endunless %}

<div itemscope itemtype="http://schema.org/Product">
  <meta itemprop="image" content="https:{{ product.featured_image.src | product_img_url: 'grande' }}">
  <span itemprop="name" class="hide">{{ product.title }}</span>
  <meta itemprop="mpn" content="925872" />
  <meta itemprop="brand" content="{{ product.vendor }}">
  <meta itemprop="sku" content="{{ product.variants.first.sku }}">
  <div itemprop="aggregateRating"
    itemscope itemtype="http://schema.org/AggregateRating" style="display: none;">
   Rated <span itemprop="ratingValue">3.5</span>/5
   based on <span itemprop="reviewCount">11</span> customer reviews
  </div>
  <meta itemprop="description" content="{{ product.description | strip_html | truncate: 100 }}">
  
  {% assign _lazyload = settings.use_lazyload %}
  {% assign _product_layout = 'normal' %}
  {% assign _main_class = 'col-12' %}
  
  <div class="container">
    <div id="col-main" class="page-product layout-{{ _product_layout }} slider-normal">
      <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
        <meta itemprop="url" content="{{ shop.url }}{{ product.url }}" />
        
        {% if product.available %}
          <link itemprop="availability" href="https://schema.org/InStock" />
        {% else %}
          <link itemprop="availability" href="https://schema.org/OutOfStock" />
        {% endif %}

        <div class="product">
          <div class="product-content-wrapper">
            <div class="row">

              <div class="col-lg-7 col-md-6 col-sm-12 col-12">
                {% include 'product-detail-image' %}
              </div>

              <div class="col-lg-5 col-md-6 col-sm-12 col-12">
                <div id="product-info" class="product-info" data-stock="{{ section.settings.show_product_quantity }}">
                  <div class="product-info-inner">

                    {% include 'product-detail-discount-popup' %}

                    <div class="d-flex brand-label">
                      {% if section.settings.show_product_vendor and product.vendor != blank %}
                        <div class="product-vendor">{{ product.vendor | link_to_vendor }}</div>
                      {% endif %} 

                      {% include 'product-label' %}
                    </div>
                       
                    <h1 itemprop="name" content="{{ product.title }}" class="page-heading">{{ product.title }}</h1>

                    {% include 'product-detail-review' %}
                    {% include 'product-detail-price' %}
                    {% include 'product-detail-short-description' %}
                    {% include 'product-detail-sku-stock' %} 

                    {% include 'product-detail-inventory' %}
                    {% include 'product-detail-deals' %} 

                    {% if product.available %}

                      {% assign hide_default_title = false %}
                      {% if product.variants.size == 1 and product.variants.first.title contains 'Default' %}
                        {% assign hide_default_title = true %}
                      {% endif %}

                      <div class="group-cw clearfix">
                        {% form 'product', product, class:'product-form product-action variants' %}
                          {% include 'product-detail-variants' %}
                          <div class="qty-add-cart">
                            {% include 'product-detail-qty' %}
                            {% include 'product-detail-btn' %}
                          </div>
                        {% endform %}

                        {% include 'layout-people-in-cart' %}
                        {% include 'product-detail-order-shipping' %}
                        {% include 'product-detail-pre-order-btn' %}
                        {% include 'product-detail-wishlist-compare' %} 
                      </div>

                   {% else %}
                          {% include 'product-detail-unavailable' %} 
                    {% endif %}

{% comment %}                    {% include 'product-detail-short-description' %} {% endcomment %}
                    {% include 'product-detail-popup' %}
                    {% include 'product-detail-pre-order' %}
                    {% include 'product-secure-image' %}

                    {% if settings.show_social_sharing_product and settings.share_js != blank %}
                      {% include 'social-sharing' %}
                    {% endif %}

                  </div>
                </div>
              </div>

            </div>
          </div>
        </div>

      </div>
    </div>
  </div>

  {% include 'product-toggle' %}

  {% if section.settings.product_tab_review == 'below' and settings.product_review_option != 'none' %}
    <div class="review-item" id="tab_review_tabbed">
      <div id="tab-review" class="container">
        {% include 'product-detail-review-content' %}
      </div>
    </div>
  {% endif %}

  {% for block in section.blocks %}
    {% case block.type %}
      {% when 'related-product' %}
        {% include 'related-product' %} 
      {% when 'super-deals-product' %}
        {% include 'super-deals-product' %} 
      {% when 'article' %}
        {% include 'category-top-article' %}
      {% else %}
    {% endcase %}
  {% endfor %}

</div>

{% if settings.enable_notify_product_page %}
  {% include 'layout-notify' %}
{% endif %}

{% include 'product-template-script' %}

Undefined asked
2022-11-25


Source

Didn't find the answer?

Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Similar questions

Find the answer in similar questions on our website.

639 shopify - How to return information on products using Tapcart app?
324 web services - How do I integrate third party APIs with Shopify to find and create products?
159 javascript - Shopify - Facing issue when creating customer using shopify api
963 jquery - Adding product without page refresh in shopify
477 css - How do I change the size of inputted text in a jQuery delivery date picker on a Shopify site?
915 api - Is there a way to create a Shopify storefront app that only affects one page of the store?
950 liquid - Outputting Shopify product metafields as HTML
573 liquid - How to no-index specific pages on shopify? Don't want to use "contains" example for shopify, can I just type "="? And what denotes as the handle?
671 localhost - How to run your Shopify app without Ngrok?
675 Asynchronous rendering of Shopify Liquid Snippet in theme app extensions

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.







Latest questions:

530 Triggering Zapier on new Shopify order containing a specific product

803 javascript - Swiper js - How can i change the background color of the selected slide

689 Shopify Webhooks not redirect into Laravel Route

61 How to enable / disable my app that is being managed from theme customization section shopify

578 Shopify List Blog Tags



© 2021

E-mail: infot@e1commerce.com