One of the complexities of e-commerce stores is figuring out how to sell similar products; for example, the same t-shirt design in different sizes and colors. Do you sell each size and color as a separate product with its own product page or do you combine them somehow?
WooCommerce handles this with variable products. Variable products can have multiple attributes such as size and color to help you sell these products. Throughout this chapter, I've been creating a poster product and attributes. I'm going to use the same data in this recipe as well, except that this time I'm going to create a variable product so people can choose the color of the poster.