How do I disable the "only 1 left!" on my product pages? Symmetry Theme

MB2
New Member
6 0 0

Hi I am using the Symmetry theme. I want to disable the "only 1 left!" on my product pages,

I found a post here.. https://ecommerce.shopify.com/c/shopify-discussion/t/how-do-i-disable-the-only-1-left-on-my-product-...

 

with this code to disable.

if (variant.inventory_management) {
     if (variant.inventory_quantity < 10 && variant.inventory_quantity > 0) {
          $variantQuantity.html({{ 'products.product.only_left' | t: count: '1' | json }}.replace('1', variant.inventory_quantity)).show();
      } else {
          $variantQuantity.hide();
     }
 }

but I cannot find this code on the product.liquid template,

Any advice appreciated.

0 Likes
MB2
New Member
6 0 0

For anyone else with this issue I think I have found a solution....

 

Go to product-label.liquid. Use Comments around this section.

 

{% comment %}
{% elsif settings.prod_stock_warn_show and product-label.variants.size == 1 and inv_mngmt_size > 0 and product-label.variants.first.inventory_quantity > 0 and product-label.variants.first.inventory_quantity < limit_as_int %}
    <span class="productlabel general"><span>{{ 'products.labels.only_x_left' | t: quantity: product-label.variants.first.inventory_quantity }}</span></span>
{% else %}
{% endcomment %}

 

0 Likes