Woocommerce - export Product image src to csv (3 posts)

  1. blueoceans2002
    Posted 2 years ago #

    I use the plugin store exporter to export the products from my woocommerce store. It pulls all the information except the product's featured image src to the csv. Basically it pulls the information like this
    $products[$key]->sku = get_post_meta( $product->ID, '_sku', true );
    $products[$key]->name = $product->post_title;
    $products[$key]->permalink = $product->post_name;
    $products[$key]->image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $product);
    $products[$key]->description = woo_ce_clean_html( $product->post_content );
    $products[$key]->excerpt = woo_ce_clean_html( $product->post_excerpt );
    $products[$key]->price = get_post_meta( $product->ID, '_price', true );
    $products[$key]->sale_price = get_post_meta( $product->ID, '_sale_price', true );
    The highlighted code is what I have added to to pull image src into the csv but it does nothing. Any help will be highly appreciated. Thanks in advance

  2. lododicesimo
    Posted 2 years ago #

    yes is the same for me.. i would like have the image link on my csv...

  3. WPyogi
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic