First, for any product, if you want to add a variant, then click the checkbox under "Variants."


Select option type, and for that, enter values. You can add multiple values by pressing enter.


If you want to add another option, click on the "Add another option" button.


At last, you have to add the price, quantity, SKU, and barcode for each value.