Re-order out of stock product variation attributes

Created on 3 March 2025, about 1 month ago

Problem/Motivation

Product variations are ordered in the add to cart form according to the weight set in the product attributes.

E.g A product T-shirt with attributes Small - (weight 1), Medium - (weight 2) and large - (weight 3) will display on the add to cart form as

Small
Medium
Large

If you change the weights to Small - (weight 3), Medium - (weight 2) and large - (weight 1)

It will display in the order

Large
Medium
Small

Lets say you use the order

Small
Medium
Large

and Small is out of stock, then the add to cart button will show "Out of Stock"
This confuse some customers as they think the T-shirt is out of stock in its entirety, but in reality Medium and Large is still in stock

Proposed resolution

Set the weight order of "out of stock" product attributes to move to the bottom (weight 100)

If Small is out of stock then the order of display would be
Small - (weight 100), Medium - (weight 2) and large - (weight 3)

Display order

Medium
Large
Small

This will then display an "Add to cart" button for the product, rather than an "out of stock" button.
Only when you try to order a Small will you be presented with an "Out of Stock" button.

✨ Feature request
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡ΏπŸ‡¦South Africa vlooi vlerke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024