Viewing 10 replies - 1 through 10 (of 10 total)
  • Cze??!

    I’m new to this, but I think I stumbled across a solution for you from my experimentation.

    Export a variable item that has those attributes assigned to it. (If you don’t have one with all of them, make a fake product and associate all of them to it.)

    The CSV file will have all of them in it in the Attributes columns.

    Add a new product to the CSV file (can be fake) and copy the Attribute cells from the exported item to the new product. Give the attribute the new name you want. Make sure to have “Global” set to 1, to make it a global attribute.

    Save your CSV and import it. It will create a new product and will automatically create the new attribute.

    If you have multiple new attributes you want to create with the same original taxonomies, just make multiple new products in the csv, before importing it.

    I hope that makes sense.

    Thread Starter matteku

    (@matteku)

    @rigwald thank You for Your answer. I’ll give a try for your solution, however I would like to have new atribute in atributes list (will use it for multiple products).

    As far I understood your method, the only way is to export product with the atribute I would like to duplicate and import new product after changing atribute name in CSV file. Correct?

    @matteku

    Let me try to be clearer, because it will create the new global attribute to be used for multiple products.

    1) Export the current item with your current attribute.
    2) Open the CSV and create a new item on the row below your exported item.
    3) Copy FILL DOWN all the attribute columns, to basically copy all your taxonomies, etc… to the new item.
    4) RENAME the name of the attribute (so, change bawelna to jedwab)
    a) Make sure there that under Global, you have “1”, to make the new attribute a
    global attribute.
    5) Repeat 2-4 for any other materials you want to create attribute for.
    6) Save and import the CSV (DON’T CHECK UPDATE PRODUCTS).
    7) Jedwab and any other attributes will now be in your global attributes for use everywhere.

    That should do it.

    (I’ve been battling importing variable products, but all my attributes have been importing perfectly like this. ?? )

    • This reply was modified 4 years, 8 months ago by rigwald.
    Thread Starter matteku

    (@matteku)

    Thanks again for your time. I really appreciate it.

    But… I struggle a major problem – after exporting, editing CSV (changing atribute name) and saving it as CSV UTF-8 I can not map all categories – it looks like that:
    https://smyklove.pl/wp-content/uploads/2020/07/Przechwytywanie-2.png

    But if I export CSV file with product and do not make any changes, I can map everything with no problem and import goes smoothly.

    Do not know what I’m doing wrong ;(

    @matteku

    Cze??. I don’t know. I’m not well versed in this. My guess is don’t save it specifically as UTF-8. Simply save it as it was. I know documentation specifically mentions UTF-8, but since you are editing the file WooCommerce created, there should be no need to convert it/save as.

    When I create a CSV file to import, I don’t specify UTF-8 and the new attributes go perfectly.

    Thread Starter matteku

    (@matteku)

    unfortunately, after just saving (not save as) – the same problem ??
    have no idea why.

    @matteku,

    Post a link to the CSV file that won’t import and I’ll see if I can figure it out. ??

    Thread Starter matteku

    (@matteku)

    Ok. Try saving it as an excel file and post it.

    @matteku

    Something else that might have happened. When you copy the cells, click ONCE where you want to paste them. It is possible, you are clicking twice on the destination cell and pasting all the info into the input line (right under the menu ribbon). It will look like it is going in all the boxes, but it isn’t. If you have a cursor in the input line, it will put all the data in that one cell, not spread it across multiple cells. This is just a guess for why everything is packed in the one column.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to duplicate atributes’ is closed to new replies.