In previous versions of WooCommerce, the product image was displayed in the order emails sent to your customers. Recently, this was disabled by default.
Fortunately, it’s easy to enable again; simply add the following to your theme’s functions.php
file:
1 2 3 4 5 6 7 8 9 |
add_filter( 'woocommerce_email_order_items_args', 'iconic_email_order_items_args', 10, 1 ); function iconic_email_order_items_args( $args ) { $args['show_image'] = true; return $args; } |
Now when order emails are sent, each product should also have a thumbnail displayed.
3 Comments
hi, this piece of code works just partly for me, as it doesn´t show a product image, just a blank/missing image in the email. Is there anyway how to fix it ? thanks tomas
not show image in mail ..it show the link to click display image in the link
Hi, it works! Thank you so much 🙂