I am running a Woocommerce shop with the product CSV import suit plugin. I need to first upload a list with parent products and second a list with products variations. Creating the second list is quite labor intensive, so I am looking for a way to automatically generate this list as much as possible.
Here is how a short, simplified list of parent products could look like:
The actual list with parent products would contain many more product characteristics.
And this is how the results with product variations should look like:
As you see the can see the product variation (child) inherents all of the products characteristics of the parent product and only one of the size and color variables. It would be nice if a child sku would automatically be generated as well.
I would like the output data (product variations) to be generated in a different worksheet (seperate from the parent product list).
Does anyone have any thoughts how to do this in Excel? I am no Excel wizard, so I hope you can give me some guidance on how to implement your solution.
The logic here is to read each row until an empty row is found, and then split the colors and sizes. Then create an outer loop for the colors and inner loop for the sizes (this will process all variations). You will also need a variable to hold the child sku counter and reset it when the variation are done for a product. The following will get you started: