Planning product variants for an online catalogue
Define how customers choose an option and how each option maps to stock and orders.
Identify the choices
Agree which product attributes a customer can choose, such as size or colour, and which combinations are actually offered. A product page should not imply that an unavailable combination can be ordered.
Connect variants to records
Decide how each option maps to a product reference, price and stock record. For example, two sizes may share a product page and images but need separate availability and the correct stock reference on the order.
Handle changes and accessibility
Define what happens when an option is unavailable or the customer changes a selection. Ensure labels, choices and errors work by keyboard and communicate the selected option without relying only on colour.
Test the order journey
Use fictional products to check a normal selection, an unavailable variant and a stock change before checkout. Verify the order carries the correct option and use an isolated payment environment or mock for tests. Check that changing the option updates the visible availability and that an out-of-stock choice cannot be submitted as available.