> 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. A sold-out option is a variant that **exists** (it has a SKU/price and is listed among the product's variants) but its available quantity is 0. This setting is in **Global settings** and applies to every product.

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

{% hint style="info" %}
This setting only affects variants that exist but are out of stock. For option combinations that were **never created** as a variant (for example, a color that was never offered in a certain size), see [Non-existent display](/swatch/global-settings/non-existent-display.md).
{% endhint %}

## Display styles

Choose one of four styles:

<table><thead><tr><th width="193">Style</th><th>What customers see</th></tr></thead><tbody><tr><td><strong>No change</strong></td><td>Out-of-stock options look the same as in-stock ones (default)</td></tr><tr><td><strong>Strike-through</strong></td><td>A diagonal line is drawn across the sold-out option</td></tr><tr><td><strong>Gray out</strong></td><td>The sold-out option is dimmed/desaturated so it looks muted</td></tr><tr><td><strong>Hide</strong></td><td>The sold-out option is removed from the swatches entirely</td></tr></tbody></table>

## 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`).

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

Click **Save** to apply your changes.
