WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ch1n3s3b0y
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/woocommerce-csvimport/

  2. allaerd
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  5. introstand
    Member
    Posted 1 year 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?

    Thanks!

  6. 1mihkel
    Member
    Posted 11 months 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

About this Topic