When creating a product, for example, you might need to vary colors. The easiest and fastest way to do this is to directly create a WooCommerce Variable Product to which you can assign a custom product for each variation.
You need to create at least one custom product, for this, follow the following guide :
Once done, you need to create a WooCommerce product, then go to the “Custom products” tab after choosing the “Variable” product type.
In the case of a variable product, the “custom products” tab will be used to activate customization and will assign a default product to your WooCommerce product.
You must then define your attributes that will be used for variations.
When you have finished generating all your variations, you can now assign a custom product to each variation.