WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. wdwmkr
    Member
    Posted 1 year ago #

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

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

  2. introstand
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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 ]

    -Sean

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

About this Topic

Tags

No tags yet.