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,
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
However, the variant will still appear on the live post-purchase page, but customers will not be able to purchase it if selected.
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.




