
Woocommerce attach image to order
By default Woocommerce does not have product images in orders, with this snippet we add to Woocommerce attach image to order sometimes it’s annoying because as a webmaster you can not remember by name what they ordered and on the part of a customer much more.
Comfortable to see what he ordered if it is a shirt then also its color, meaning the image of Variation.
Anyway, there is a simple code that you can put in function.php and it will add an image to the invitation sent to the customer and the webmaster by email.
We will present a photo from an order from Woocommerce, what does an order without a photo look like.

Note that in case there were variations in the order it was much clearer to the customer with the need for an image for each product
This simple snippet adds to Woocommerce attach image to order
// Adds image to WooCommerce order emails
function minoPress_add_image_to_wc_emails( $args ) {
$args['show_image'] = true;
$args['image_size'] = array( 100, 50 );
return $args;
}
add_filter( 'woocommerce_email_order_items_args', 'minoPress_add_image_to_wc_emails' );
Just copy and paste, and that’s it! You have photos of the product that you ordered in the e-commerce email for both the customer and the webmaster
This is the result after adding the snippet:

If you want to know the differences WooCommerce vs Shopify, you can find information in this article I wrote