> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aftersell.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Understanding Out of Stock Variants

> This article explains how Aftersell handles out-of-stock variants for upsell products on the post purchase page

# **Overview**

Upsell products may have one or multiple variant options (such as size or color). Aftersell handles out-of-stock variants differently depending on how many options a product has, to ensure a smooth customer experience and prevent unavailable selections.

***

# **Out of Stock Variant Logic**

### **Products with a Single Variant Option**

If a product has **only one variant option** and that variant is **out of stock**, it is **hidden entirely.** For example,

* The blue variant for this Notebook product is out of stock

  <img src="https://mintcdn.com/aftersell/63l0jQ_Hqg_Tu6WY/images/aftersell/7eb206a30dc0.png?fit=max&auto=format&n=63l0jQ_Hqg_Tu6WY&q=85&s=18c207f14d6511af00cc3cc3e30b4b05" alt="Image" width="1498" height="1160" data-path="images/aftersell/7eb206a30dc0.png" />

* Therefore, on the post purchase page, the blue variant will not show up as an option

  <img src="https://mintcdn.com/aftersell/-rWsYKdgi77hTRax/images/aftersell/041a2153114a.png?fit=max&auto=format&n=-rWsYKdgi77hTRax&q=85&s=39cba9a0f6dbae70e7dcecac13cd5bf3" alt="Image" width="1942" height="1082" data-path="images/aftersell/041a2153114a.png" />

This prevents customers from interacting with a product that cannot be fulfilled.

***

### **Products with Multiple Variant Options**

If a product has multiple variant options, **all variant options are displayed**, including those that are out of stock. By default, Aftersell will **preselect an in-stock variant**, if one is available. However, if a customer manually selects an **out-of-stock variant**, it will be clearly marked as **unavailable** and cannot be added.

For example,

* The blue/small variant for this T-shirt product is out of stock

  <img src="https://mintcdn.com/aftersell/-rWsYKdgi77hTRax/images/aftersell/22d36bd87a47.png?fit=max&auto=format&n=-rWsYKdgi77hTRax&q=85&s=ccee51730b563960a9ac894fc9848bd2" alt="Image" width="1190" height="934" data-path="images/aftersell/22d36bd87a47.png" />
* However, the variant will still appear on the live post-purchase page, but customers will not be able to purchase it if selected.

  <img src="https://mintcdn.com/aftersell/-rWsYKdgi77hTRax/images/aftersell/191f4935810b.png?fit=max&auto=format&n=-rWsYKdgi77hTRax&q=85&s=5ab8ed978f561428f20f311c2577d1e0" alt="Image" width="1530" height="854" data-path="images/aftersell/191f4935810b.png" />

This approach gives customers full visibility into available options while preventing invalid selections.

**NOTE:** This logic applies even if all variant settings are unchecked in the editor.
