Support » Fixing WordPress » Woocommerce – export Product image src to csv

  • blueoceans2002

    (@blueoceans2002yahoocom)


    Hi,
    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
    Satish

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce – export Product image src to csv’ is closed to new replies.