variation image
-
Hi
I have the following code which works to add the product image to the invoice, but in the case of variations (grey shirt(main product image) vs red shirt (variation image), it doesnt add the variation image to the invoice, just the main product image.// Add Image To Order function example_product_image( $product ) { if( isset( $product->id ) && has_post_thumbnail( $product->id ) ) { echo get_the_post_thumbnail( $product->id, array( 80, 80 ) ); } }How do I add the actual variation image, as it shows on the order screen, instead of the main product image ?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘variation image’ is closed to new replies.