> For the complete documentation index, see [llms.txt](https://docs.globo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globo.io/product-variant-swatch/advanced-setting-variants-swatch/configure-out-of-stock-style-for-variants.md).

# Configure Out-of-stock style for variants

This helps shoppers quickly identify which options are available and which are out of stock.

## Available Styles

#### 1 - Show All Options

Display all variant options, including out-of-stock variants.

Customers can still see unavailable options, which may help them understand the full range of available products.

#### 2 - Cross Out Option

Out-of-stock variants remain visible but are displayed with a strikethrough effect.

#### 3 - Grey Out Option

Out-of-stock variants remain visible but appear faded or disabled.

#### 4 - Hide Options

Completely hide out-of-stock variants from customers.

Only available options will be displayed.

***

## How to Set Up

1. Open the **GLO Color Swatch** app.
2. Navigate to the **Settings** page.
3. From the **Out-of-Stock display** setting, select the display style you want to use.
4. Click **Save** to apply your changes.

<figure><img src="/files/28ocn0bvklU2FzFL2I5v" alt=""><figcaption></figcaption></figure>

## **How it work? see** out of stock example below

{% stepper %}
{% step %} <mark style="color:purple;">Your product have only one variant</mark>

<table data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td align="center"><strong>All option sold out</strong></td><td><a href="/files/tYwOwF5SUtr52b3GkhFL">/files/tYwOwF5SUtr52b3GkhFL</a></td></tr><tr><td align="center"><strong>1 option sold out</strong></td><td><a href="/files/Yf5neJYECIqeclciZovC">/files/Yf5neJYECIqeclciZovC</a></td></tr></tbody></table>

{% endstep %}

{% step %} <mark style="color:purple;">Your product have 2 or more variants</mark>

**Sold-out status is applied to each specific variant combination (e.g., color + size).**

* **When a customer selects a color**, Shopify will show the "sold out" status for the sizes that are not available for that color.
* **When a customer selects a size first**, the "sold out" status will not automatically apply to the colors, only showing the colors that still have that size available.

**In short, the "sold out" status only applies to each specific combination (color + size) and doesn't work in reverse.** When a customer selects an option (color or size), Shopify will only show the available options for that choice and will not "sold out" the other options.

* All combination is sold out<br>

  <figure><img src="/files/9vEDpenNhPjVnoFFX9NX" alt=""><figcaption></figcaption></figure>
* **Black** have some size is sold out&#x20;

<figure><img src="/files/XVM0LgL02i7XyihEQr8B" alt=""><figcaption></figcaption></figure>

* All size combination sold out with **green** and **gray colors**

<figure><img src="/files/3MjgwuKcijYXjsFnnJdV" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## **Out of stock not correct in collection page?**

* You need to check if you are hiding any specific variant on collection page.

<figure><img src="/files/cwfmpvEqpLznlbRV67Au" alt=""><figcaption></figcaption></figure>

<mark style="color:purple;">Example:</mark>&#x20;

* Your product has 2 variations: color, size
* Color: White, Pink, Black, Green, Gray
* Size: S, M, L, XL, XXL

**How it works**:

* Let's say you have a **Pink** product, with size S out of stock, but sizes M and L are available. If you turn off the size option on the collection page, the stock will be calculated based on the **first size (S)**.
* Since size S is out of stock, the **Pink** color will show as "out of stock," even though it’s available in other sizes (M, L).

In short, when you turn off the size option on the collection page, the system will calculate stock based on the first size (S), and if that size is out of stock, the entire color will be marked as out of stock, even if other sizes are available.

***

**💬 Need help?**

Email us at **📧 <contact@globo.io>** - we’re happy to assist!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.globo.io/product-variant-swatch/advanced-setting-variants-swatch/configure-out-of-stock-style-for-variants.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
