Woocommerce CSV importer
External/Affiliate functions.php and csv file (4 posts)

  1. wdwmkr
    Posted 3 years ago #

    Does anyone have the full list of modifications to make to the functions.php and import.csv file to load external/affiliate products?


  2. introstand
    Posted 3 years ago #

    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.

  3. wdwmkr
    Posted 3 years ago #

    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 ]


  4. introstand
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Woocommerce CSV importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.