There are case by case instances where you might want to change the number of default product variations. By default, WooCommerce only allows for 30 product variations.
The good news is that you can add a simple code snippet in your theme’s functions.php file.
Add the code below to your theme’s functions.php file and change the number for the number of variations you want to for your products.
With this code now in your functions.php file, you can modify the amount whenever you want.