We already know how to install WooCommerce, how to configure it and we have started creating our first simple product, so it’s time to start noticing all its power, which begins to be demonstrated in the variable products.
To begin with you should know that the process of creating a variable product is pretty much the same as the one of a simple product but with some important differences that we will see.
Variable products in WooCommerce
The first thing to do is, under Product data, choose Variable Product from the drop-down menu.

When specifying that it is a variable product, we will not be asked for a price in the general settings as in simple products, since this will depend, logically and hence the name, on the variations that we specify later.
The rest is filled in under the same criteria as in a simple product.
Variable product attributes in WooCommerce
When we get to this section we must, first, put a name to each attribute, and then write down the values of the attribute, separated by a horizontal bar (if we have not created them before from the Attributes submenu), otherwise WooCommerce will not identify them as values (important). If you already created them before you just have to select them.
Finally, and most importantly, we must check the box labeled “Used for variations” in those attributes that will be offered as such, otherwise, it will not be available to include them, they will simply be attributes without influence or characteristics of their own.

Variations of the variable products in WooCommerce.
Once we have created the attributes it is time to start applying variations, so the first thing to do is to select the Add variation dropdown and select the option “Create variations for all attributes” so that WooCommerce uses the attributes previously defined as variations, for which we will have to specify different values.

Once this is done we will see the list of attributes previously created, and this is when it is time, by clicking on each one to display it, to set each and every one of the fields for each of the variations.
In this way, as in the example shown in the screenshot, we define the capacity (16Gb, 8Gb or 4Gb) as used for variations, we can, and should, detail the price, features, or even specific photo for each variation.

Once you have finished specifying the values for each variation, do not forget to save the changes before publishing the product, which will already offer the possibility to choose variations before placing the order, each with its own price or characteristics, as shown in the following screenshots: