WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. blueoceans2002
    Member
    Posted 1 year ago #

    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

  2. lododicesimo
    Member
    Posted 1 year ago #

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

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic