Support » Plugin: Woocommerce CSV importer » External/Affiliate functions.php and csv file

Viewing 3 replies - 1 through 3 (of 3 total)
  • I might be able to help you. I’ve got it working almost perfectly. The only problem I’m having is that I can’t seem to import more than about 50 products at once.

    If you give me your email I can send you my copy of the functions.php so you can find the modifications.

    Good morning and thank you. If you could please send me a copy of the functions.php file to [ redacted, support is offered via the forums and not email ]


    I think you need to do two modifications. The external product need a link so that needs to be added. I put this lines after the tax class.

    //product link
    if (isset($data[17]) && $data[17])
    update_post_meta( $post_id, ‘_product_url’, $data[17] );

    Then you have to specify that it’s an external product and not a normal.
    Add this line the “//get picture if there is one and add it as featured image” statement.

    wp_set_object_terms( $post_id, ‘external’, ‘product_type’);

    Hope that helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘External/Affiliate functions.php and csv file’ is closed to new replies.