Woocommerce CSV importer
[resolved] Including 'external' product_type (6 posts)

  1. ch1n3s3b0y
    Posted 3 years ago #

    Hi all

    I'm trying to set the product type as 'external'. I've managed to add the product_url to the import, however I am struggling with setting the product_type as external. Does anyone know how this can be done?

    So far I added

    update_post_meta( $post_id, '_product_url', $data[14] );

    to line 132. Struggling to figure out how to set the product_type though.


  2. allaerd
    Plugin Author

    Posted 3 years ago #

    External product is part of a different taxonomy. It's not a meta thing. I'll try to check it out an add it to the plugin!

  3. allaerd
    Plugin Author

    Posted 3 years ago #

    If you add

    wp_set_object_terms( $post_id, 'external', 'product_type');

    below row 136

    than you have youre self an external product. I'll add this in the next version!

  4. Refugeek
    Posted 3 years ago #

    Glad I found this message, was looking for this feature. When is the next version coming?

  5. introstand
    Posted 3 years ago #

    Very interested in thi feature as well. When is the next version coming?

    Until then could someone help me with all the changes that has to be made to get it to work on the current version?


  6. 1mihkel
    Posted 2 years ago #

    Where does one have to insert the codes mentioned above to get it to work?
    What file? I tried adding it to the woocommerce-csvimport.php, but that did nothing.

    Thanks in advance.

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