• Resolved alperinbiri

    (@alperinbiri)


    Hello,

    I managed to import all products successfully by using the built-in importer and also did the same using the CSV import suite. Variables are not created automatically in either case, although parent products are created 100% correctly.

    Just to clarify and expand on that:

    – If I use the built-in importer, both attributes (size and colour) are imported, but not selected to be used for variations. I’m not sure how to make these attributes to be selected as a default for variables. So in this case I can understand why variables are not created.

    – If I use the CSV import suite instead of the built-in importer, I can create all products with attributes (size and colour), and this time I can make them selected for creating variables by default (using 1|1|1).

    However, in both cases, the parent products have no variables created, so I have to go and manually create all variations. For 1000+ products, this is a tedious and never-ending job. Creating all variations on a CSV (which would be around 45k) is also not practical. I imagine it would take less time to create them on the back end manually rather than creating 45k variations on CSV.

    So the question is.. Once the parent product is successfully created, with all relevant attributes (size, colour etc.), and the ones that are used for variations are ticked.. How can I create all relevant variations? Or how can make import tool to create variations at the point of creating parent products?

    Thanks in advance!

    PS. I found a similar question here link but I wasn’t sure if it would be better to reply there or create a new post. Since it was marked “resolved”, I thought I’d create a new post, but if this is not the right approach please let me know for future ref.

Viewing 8 replies - 1 through 8 (of 8 total)
  • seank123

    (@seank123)

    Can we see your CSV file – or a part of it with a few products and variations.

    • This reply was modified 5 years ago by seank123.
    Thread Starter alperinbiri

    (@alperinbiri)

    Thanks for the response! Sure, please see below.

    Sample CSV files

    Thanks

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi @alperinbiri

    Taking a look at both CSV files, variations are not showing up because you have not yet created them in the CSV. Only the parent variable with the attributes have been created.

    The best way to see how a variable product and its variations should be created is to create at least one product manually and export it. You’ll see that along with a row for the variable product type there is a variation product type. Make . sure that either the parent’s SKU or ID is included in the variation’s Parent column, too!

    Also, here’s an example of a CSV file with variable and variations: https://github.com/woocommerce/woocommerce/blob/master/sample-data/sample_products.csv

    Hope that helps!

    Thread Starter alperinbiri

    (@alperinbiri)

    Hello @yukikatayama! Thanks for the response, however, this is actually the main point.

    I am importing products from another platform, and I have around 1400 products. Most products have 2 main attributes, size and colour. As a result, I have around 40000 variables.

    As you can imagine, creating a CSV file with over 40k lines is not a practical job for manual entry. I don’t know if there is an automated way of generating the CSV – if so please let me know.

    The other option is, of course, to generate variations from the variables tab. The trouble is, doing this 1400 times, is also no easy job.

    I though WooCommerce would be able to handle this task, as part of the import job. My question is, how can I do that.. Not how to create a CSV for variables (unless there’s a way to generate such file).

    I hope this makes sense, and there is a way to achieve that.

    Thanks!

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    What platform are your exporting from? Do they not have another CSV that includes the variations? In WooCommerce, in order for variations to get added to the the parent product, a separate set of variations would need to be created to get assigned to the variable product. Without the variations created and assigned to the variable in the CSV, you will not see those variations on the site.

    Depending on what system you’re exporting from, there might be a plugin or a recommendation they provide in how to export and import variable products to WooCommerce.

    Thread Starter alperinbiri

    (@alperinbiri)

    Understood. I’ve already migrated the products (hence I have a CSV file), but data was very messy. I spent a lot of time tidying it up (duplicate attributes, values etc. etc.).

    Maybe you can help with this.. I found a code that is supposed to create variables. I couldn’t make it work, as I’m not a programmer. I copied and pasted the code in Code snippets plugin, using various options (run once / run continuously), but it didn’t work. Maybe code is not compatible with the latest version of the Woocommerce and/or WP.

    Creating variations programmatically

    Is this something you can help with? At least if you could give some direction that would be a great help.

    Thanks

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi @alperinbiri,

    I personally do not know, regarding the code provided. However, there may be a few more developer-level resources/services that may help:

    Paid dev services:

    https://woocommerce.com/customizations/

    Forums where devs volunteer their time:

    https://www.facebook.com/groups/advanced.woocommerce/
    https://woocommerceslack.herokuapp.com

    Thread Starter alperinbiri

    (@alperinbiri)

    Understood – thanks for the links.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Creating product variations by using CSV import suite or built-in importer’ is closed to new replies.