> For the complete documentation index, see [llms.txt](https://docs.optis.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optis.me/swatch/global-settings/out-of-stock-display.md).

# Out-of-stock display

Control how variant options that are sold out appear to customers. This setting is in **Global settings** and applies to every product.

<figure><img src="/files/dQPQd1ZkDNYRsiKgYpxK" alt="Out-of-stock display options (No change, Strike through, Hide) and the two-color swatch split setting in Global settings"><figcaption></figcaption></figure>

## Display styles

Choose one of three styles:

| Style              | What customers see                                            |
| ------------------ | ------------------------------------------------------------- |
| **No change**      | Out-of-stock options look the same as in-stock ones (default) |
| **Strike-through** | A diagonal line is drawn across the sold-out option           |
| **Hide**           | The sold-out option is removed from the swatches entirely     |

## Strike-through options

When you choose **Strike-through**, you can further customize the line:

* **Direction**: diagonal **down** (`\`) or diagonal **up** (`/`).
* **Color**: the color of the strike line (default `#FF0000`).

## Two-color swatch split

Some variants represent **two colors** (for example, a "Black / White" option). You can choose how the swatch is split between the two colors:

| Split direction   | Look                     |
| ----------------- | ------------------------ |
| **Diagonal down** | Split along `\`          |
| **Diagonal up**   | Split along `/`          |
| **Horizontal**    | Top color / bottom color |
| **Vertical**      | Left color / right color |

{% hint style="info" %}
**Hide** is useful when you do not want shoppers to consider unavailable options at all. **Strike-through** keeps the option visible so shoppers know it exists but is currently sold out. Pick whichever matches how you want to merchandise stock.
{% endhint %}

Click **Save** to apply your changes.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.optis.me/swatch/global-settings/out-of-stock-display.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
