• Hi,

    I need to show the MAIN PRODUCT IMAGE URL to pass to a 3rd company shipper.

    I can get the image, i can get the id, but cannot get the URL.

    I am using this

    $attachment_ids = $product->get_gallery_attachment_ids();
    
    			foreach( $attachment_ids as $attachment_id )
    {
    	echo $attachment_id.','.$image_link = wp_get_attachment_url( $attachment_id );
    
    }

    But only shows the urls of the product gallery images. Please help?

Viewing 1 replies (of 1 total)
  • Thread Starter derekbaehr

    (@derekbaehr)

    update, i am using this to show the image and image id, i need something like this to show the URL:

    echo $product->get_image();
    echo $product->get_image_id();

Viewing 1 replies (of 1 total)
  • The topic ‘showing PRODUCT IMAGE URL’ is closed to new replies.