• Resolved yourfluf

    (@yourfluf)


    Hello,

    I have created a few custom attributes for my woocommerce products for a clothing marketplace, most importantly the brand attribute. We have over 2000 brands which need to be added to our site. This will take forever to do by manually adding each brand name and brand slug url.

    How can I bulk upload all 2000+ brand attributes?

    • This topic was modified 2 years, 8 months ago by yourfluf.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • @yourfluf

    Using CSV, you can export all the products then add the attributes and re-import them using the guide below: https://woocommerce.com/document/product-csv-importer-exporter/

    I hope this helps!

    Thread Starter yourfluf

    (@yourfluf)

    Hey,

    Thank you for your quick response. Unfortunately that doesn’t help though. As I said it is over 2000 brands, so I cannot manually add them to all of the products. Our marketplace is a multivendor marketplace, so each vendor needs to attribute their products as they upload them. Therefore I need to pre-add all the 2000 brands to our site so each vendor has the options to choose from

    Plugin Support Raif D. a11n

    (@rdeari)

    Hi @yourfluf !

    You will not need to add those manually in WordPress, all you will need to do is add them to the products in a CSV file.

    Would that work for you?

    Also, where are your brands currently saved? Do you have them in a CSV file?

    Thread Starter yourfluf

    (@yourfluf)

    Hi Raif,

    A member of our team found a workaround by adding the following piece of code to our functions.php file, and this adds the brands directly to the database. It worked successfully.

    function add_brands() {
    
    $brands = [‘brand1’, ‘brand2’, … ‘brandn’]
    
    foreach ($brands as $brand) {
        wp_insert_term($brand, 'pa_brand');
    }
    
    }
    
    add_action('init', 'add_brands');

    Hello,

    As mentioned earlier, you can add Attributes in bulk (without using a plugin) via CSV file upload, you can add one, or a list of attributes (depending on your needs), this will need of course some time while you create and upload the file according to what you need.

    Another alternative is using plugins, for example:
    https://woocommerce.com/document/bulk-edit-products-prices-and-attributes/

    It includes a 30Day money-back guarantee. And you will be able to make pre-sales questions at (This will need to create an account before): https://woocommerce.com/my-account/create-a-ticket/

    I hope this provides clarity.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Bulk Add Product Attributes’ is closed to new replies.