How To Mark Product Sold out on Shopify

How To Mark Product Sold out on Shopify

How to Mark Products as Sold Out in Shopify

Keeping your inventory accurate is one of the most important parts of running a successful online store. When customers visit your site, they expect the product availability to be up to date. If an item is out of stock but not clearly marked, it can lead to confusion, frustration, and lost trust. That’s why it’s so important to display a clear “Sold Out” label on any product that isn’t available. Not only does this improve the shopping experience, but it also makes your store look more professional, organized, and reliable.

Customers appreciate honesty and transparency. A “Sold Out” label lets them know the product is currently unavailable, saving them the trouble of clicking through and getting disappointed. Plus, it gives you a chance to build anticipation for restocks or guide them toward similar products.

 

Methods to Mark product as Sold out

There are different methods of marking products as sold out, some are listed here.

  1. Use Shopify’s built in Inventory management.
  2. Manually add Sold out text in product title or badges.
  3. Install Shopify Apps for Sold out labels.

 

Method 1: Use Shopify’s built in inventory management

In this method You can manage the product inventory directly from the Shopify Admin. If inventory is less than the threshold then most Shopify website automatically show sold out basge to the product items. If this feature is not avaible in your theme then you have to use some alternate approach like using custom coding.

Step 1: Navigate to Shopify admin > Products.

How To Mark Product Sold out on Shopify

Step 2: Select the product you want to update.

How To Mark Product Sold out on Shopify

Step 3: Scroll down to the inventory section.

How To Mark Product Sold out on Shopify

Step 4: Check track quantity.

How To Mark Product Sold out on Shopify

Step 5: Set the quantity to 0 for all possible locations.

How To Mark Product Sold out on Shopify

Step 6: Optional Uncheck continues selling when out of stock to prevent backorders.

How To Mark Product Sold out on Shopify

Note: Shopify will automatically show the Sold out label or disabled the Add to Cart button depending on the theme.

 

Method 2: Manually add Sold out text in product title or badges

In this method you can show the sold out lable in your product title or as a badge in the product list in your desired location using custom coding. Custom coding gives you the full control over badges placement and style according to your branding. Sold out badge clearly tells the customers that this product is currently not available to increase user's trust and increase conversions. This process is useful when you want to visually mark the products as sold out. Here is the final result, check the GIF below to see how it will look before we go through the steps.

How To Mark Product Sold out on Shopify

There are two possible ways of doing that.

  1. Add Sold out in Product title.
  2. Disable the add to cart button when sold out.
  3. Use Product Tags.

 

1. Add Sold out in Product Title

If your theme does not support a sold out label then you can add this using liquid. Follow these steps to add a sold out label in the product title using Liquid.

Step 1: Navigate to Online Store > Themes > Edit code.

How To Mark Product Sold out on Shopify

Step 2: Go to the product-item.liquid or card-product.liquid file depending on the theme.

How To Mark Product Sold out on Shopify

Step 3: Search for the area where you want to add a sold out label.

Step 4: Add this code at the beginning or end of the product title.

  
    {% if product.available == false %}
        <span class="sold-out-badge">Sold Out</span>
    {% endif %}
  

Step 5: Add CSS to style the sold out badge in your stylesheet file at the end like theme.css or base.css.

  
    .sold-out-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: #e74c3c;
        color: white;
        padding: 5px 10px;
        font-size: 12px;
        text-transform: uppercase;
        z-index: 2;
        border-radius: 3px;
    }
  

Step 6: Click Save.

How To Mark Product Sold out on Shopify


2. Disable add to cart button when Sold out

Most Shopify Themes automatically disable the add to cart button if product is sold out. If your theme does not support that then you can do that using liquid. Follow these steps for step by step process to enable that in your theme.

Step 1: Navigate to Online store > Themes > Edit code

How To Mark Product Sold out on Shopify

Step 2: Go to the main-product.liquid file.

How To Mark Product Sold out on Shopify

Step 3: Go to the product form section where the add to cart button exists in your file and add this code. Something like that and style appropriately according to your branding.

  
    {% if product.available %}
        <button type="submit" class="btn">Add to Cart</button>
    {% else %}
        <button type="button" class="btn disabled" disabled>Sold Out</button>
    {% endif %}
  

This product variable can be different based on the reference for example if you use code {% render ‘card-product’. product: product %} like this in your product loop  then use this code. 

  
    {% render ‘card-product’. product: product %}  then use this code
    {% if product.available %}
        <button type="submit" class="btn">Add to Cart</button>
    {% else %}
        <button type="button" class="btn disabled" disabled>Sold Out</button>
    {% endif %}
  

If you use this in your product loop {% render ‘card-product’. card-product: product %} then use this code.

  
    {% render ‘card-product’. card-product: product %}  then use this code
    {% if card-product.available %}
        <button type="submit" class="btn">Add to Cart</button>
    {% else %}
        <button type="button" class="btn disabled" disabled>Sold Out</button>
    {% endif %}
  

Step 4: click Save.

How To Mark Product Sold out on Shopify

 

3. Use Product Tags

You can also add product tags like sold out in the product that has inventroy of 0. Show the tag using liquid in the storefront so that user can clearly see the sold out products. Also this can be helpful to sort the products based on the tags in the collection pages in Shopify. To add product tags and to show the soldout label follow these steps.

Step 1: Navigate to Shopify Admin  > Products

How To Mark Product Sold out on Shopify

Step 2: Select the product you want to update.

How To Mark Product Sold out on Shopify

Step 3: Scroll down to the Product tags section.

How To Mark Product Sold out on Shopify

Step 4: Add the sold out tag and click Save button.

How To Mark Product Sold out on Shopify

Step 5: Go to the product-item.liquid or card-product.liquid file depending on the theme.

How To Mark Product Sold out on Shopify

Step 6: add this code in your desired location

  
    {% if card_product.tags contains 'sold out' %}
        <span class="sold-out-badge">Sold Out</span>
    {% endif %}
  

Step 7: Click Save button.

How To Mark Product Sold out on Shopify

 

Method 3: Use Shopify Apps for Sold out Badges

You can install apps from Shopify app store to add Sold out badges by using apps without any coding knowledge. There are many Shopify Apps available for that purpose. Simply install the app of your choice and configure it with the guide provided. Steps can vary from app to app. Here is the final result, check the GIF below to see how it will look before we go through the steps.

How To Mark Product Sold out on Shopify

Step 1: Navigate to Shopify Admin > Apps

How To Mark Product Sold out on Shopify

Step 2: Click on All recommended apps button here.

How To Mark Product Sold out on Shopify

Step 3: Navigate to the Shopify app store using this link.

How To Mark Product Sold out on Shopify

Step 4: Search for the app you want to add eg.DECO Product Labels & Badges app.

How To Mark Product Sold out on Shopify

Step 5: Click on the install button.

How To Mark Product Sold out on Shopify

Step 6: Click Install in the Shopify Admin

How To Mark Product Sold out on Shopify

Step 7: Click on the quick add label button.

How To Mark Product Sold out on Shopify

Step 8: Select the type of label Image label or Text label.

How To Mark Product Sold out on Shopify

Step 9: Add background color according to your requirements.

How To Mark Product Sold out on Shopify

Step 10: Add dynamic label based of the variables available or using metafields 

How To Mark Product Sold out on Shopify

Step 11: Customize other settings like text size , color location of label to appear for example on product, collection page etc. you can also show or hide on desktop and mobile as well.

Step 12: select the product where you want to show the label.

How To Mark Product Sold out on Shopify

Step 13: Click Save.

How To Mark Product Sold out on Shopify

Step 14: Click on App embed.

How To Mark Product Sold out on Shopify

Step 15: Click Save

How To Mark Product Sold out on Shopify

Some popular Apps are listed here.

  1. DECO Product Labels & Badges

  2. TA Product Labels & Badges

  3. Sami Product Labels & Badges

For more theme customization tricks, check our article on how to add schema markup to Shopify.

 

Conclusion 

Clear “Sold Out” labels help create a smoother shopping experience and build trust with your visitors. They also prevent confusion and reduce the chance of customers getting frustrated by trying to buy something that’s no longer available.

Shopify makes it easy to show “Sold Out” messages in different ways. You can set it up using Shopify’s built-in settings, add a small piece of custom code, or use a helpful app. Each option has its benefits, and you can choose what works best for your store’s design and your comfort level with tech.

If you're unsure which method to use or need help setting it up just right, don’t worry, we’ve got you covered.

Our team at Ecomx Agency is here to help!

Frequently Asked Questions

Marking products as “Sold Out” helps maintain customer trust and improves the shopping experience. It prevents buyers from trying to purchase unavailable items and reduces frustration, while also making your store look professional and well-managed.

Yes. Shopify’s built-in inventory tracking can automatically display a “Sold Out” label or disable the Add to Cart button when a product’s quantity reaches zero, depending on your theme settings.

Not necessarily. You can use Shopify’s built-in features or install apps like DECO Product Labels & Badges, TA Product Labels & Badges, or Sami Product Labels & Badges to add “Sold Out” badges without writing any code. Coding is only required if you want fully customized labels.

Comments(0)
You don't have any comments yet

Are You Looking for a Shopify Expert?

We design, develop, optimize, and scale high-converting Shopify stores.

Get in touch
Let's Connect
Shopify Plus eCommerce Development Agency ecomx agency

Looking for a Trusted Ecommerce & Shopify Plus Agency?

We design, develop, optimize, and scale high converting Shopify Ecommerce stores that drive sales.

Get in Touch
Adam

Need a hand with your e-commerce? Shopify Migration Experts Agency Ecomx shopify plus agency

Let’s talk about your next project

Shopify Custom Theme Development Services Live Chat