Automatically generate product variations I'm creating a webshop with Drupal Commerce.

I have a product variation called T-shirt. It has three product attributes, color, size and print.

My problem

Let's say I need a T-shirt with 5 different colors, 5 different sizes and 5 different prints. Then I need to enter 125 product variations manually in the Admin UI.

What I need

I need to be able to automatically generate those product variations, since it takes extremely long time to create them manually.

It should be possible to enter the default price for all the variations.



Am I the only one who has had the need to do this? I feel like this should be possible, but I can't find any help on how to do it.

I found this thread, but it says that the functionality has been made in the Commerce Bulk module. I tried to install that module, but I can't find the option to bulk generate the product variations.

Have any of you tried this before, or know how to do it?
Well, I did have a look around I could not get Commerce Bulk module to install. 
Then I saw https://www.drupal.org/project/commerce/issues/2755529, which will be a sweet feature when it has been merged. I could not get the patch to apply so I ended up creating a sandbox module based on this and here we go:
https://www.drupal.org/sandbox/taggartj/3104497

Judging by your rank you will know how to get the code. 

https://git.drupalcode.org/sandbox/taggartj-3104497/commit/7997ee4

This module will give you a route (no link yet):

You need to create at least one Product variation manually, then go to: 

"/product/PRODUCTID/variations/VARIATIONID/bulk-generate"

or example /product/331/variations/1/bulk-generate, for it to allow you to bulk generate your variations.