Product out of stock but add to cart visible

New Member
4 0 0

All my products are unavailable or out of stock on this account. I've tried to add a couple of new products, but that doesn't work. I was orginally using a customized template for the product page, but even with the default product page it doesn't work. 

I don't want to track the quantity since it is a virtual product. This product has two variants.

If I add to every variant quantity = 1, the product is still out of stock ("ausverkauft"), but the add-to-cart-button ("In den Warenkorb legen") is clickable.

 

How can I fix the availability?

Bildschirmfoto 2019-12-01 um 23.38.12.png

0 Likes

Hello 

You are working on which theme?

Please share your site url. 

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Custom Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Digital Marketing | Site Speed Optimization | Web Development
0 Likes
New Member
4 0 0

Hi,

I am working on Debut Theme. My shop is https://landkartenshop.myshopify.com/.

0 Likes

Hello 

Go to 

Online Store-> Themes -> Edit code->Sections->product-template.liquid

and check if below code is available or not.

<div class="product-form__item product-form__item--submit{% if section.settings.enable_payment_button %} product-form__item--payment-button{% endif %}{% if product.has_only_default_variant %} product-form__item--no-variants{% endif %}">
              <button type="submit" name="add"
                {% unless current_variant.available %} aria-disabled="true"{% endunless %}
                aria-label="{% unless current_variant.available %}{{ 'products.product.sold_out' | t }}{% else %}{{ 'products.product.add_to_cart' | t }}{% endunless %}"
                class="btn product-form__cart-submit{% if section.settings.enable_payment_button %} btn--secondary-accent{% endif %}"
                data-add-to-cart>
                <span data-add-to-cart-text>
                  {% unless current_variant.available %}
                    {{ 'products.product.sold_out' | t }}
                  {% else %}
                    {{ 'products.product.add_to_cart' | t }}
              
                  {% endunless %}
                </span>
                <span class="hide" data-loader>
                  {% include 'icon-spinner' %}
                </span>
              </button>
               {% if section.settings.enable_payment_button %}
              {{ form | payment_button }}
              {% endif %}
              
            </div>
Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Custom Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Digital Marketing | Site Speed Optimization | Web Development
0 Likes
New Member
4 0 0

Hi again,

Yes, the code snippet is in product-template.liquid. I didn't change anything in this template file but created a new one which I can choose in the dropdown menu when adding a new product. But it doesn't work for neither for the default template.

0 Likes
New Member
4 0 0

Of course I could delete the line {{ 'products.product.sold_out' | t }} in product-price.liquid, but this is not a real solution.

 

<div class="price__availability">
    <dt>
      <span class="visually-hidden visually-hidden--inline">{{ 'products.product.availability' | t }}</span>
    </dt>
    <dd>
      <span class="price-item price-item--regular">
        {{ 'products.product.sold_out' | t }}
      </span>
    </dd>
  </div>

 

0 Likes