• Resolved Mike

    (@scynt)


    Thanks for this very helpful plugin! I did run into an issue however while I was importing using the new WooCommerce CSV importer.

    In class-pwb-importer-support.php:12, you are using the woocommerce_product_import_pre_insert_product_object filter but during the time that the filter’s triggered, the new product hasn’t been saved yet thus no ID is available and the call to wp_set_object_terms doesn’t work as expected.

    $object = apply_filters( 'woocommerce_product_import_pre_insert_product_object', $object, $data );
    $object->save();

    I fixed this by switching from add_filter to do_action and using woocommerce_product_import_inserted_product_object which is run after the product’s saved.

    I hope you can fix this in the next version.

    Regards

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WC Import not assigning brands’ is closed to new replies.