WooCommerce Tutorials

Display Product Image in WooCommerce Order Emails

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:

Now when order emails are sent, each product should also have a thumbnail displayed.

James is the founder of Iconic and an experienced WooCommerce plugin developer.

Share

12 Comments

  1. tomas palurik says:

    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

  2. bhim says:

    not show image in mail ..it show the link to click display image in the link

  3. Hi, it works! Thank you so much 🙂

  4. Chibi says:

    Hello!

    i struggle so hard with a similar issue
    I try to display a product image in the order pop-up(modal preview) in the orders page but i didnt find how to do it.. do you have an idea?

  5. 2El Eşya says:

    working wp 5.1.1 + woo 3.6.2 , thank u so much

  6. Elsy T. says:

    Hello James! Thank you very much for this code! It was the only one that works great! I found others but they didn’t work for me! Just one little question: Is there a way to increase the size of these images? Is there a little code to make the trick? I’ll really appreciate!
    Thank you again! 🙂

  7. jose says:

    Hi James, thanks for the code , it works perfectly.
    I noticed other codes examples didn’t include the last numbers in the Filter.
    add_filter( ‘woocommerce_email_order_items_args’, ‘iconic_email_order_items_args’, 10, 1 );

    Why the are there for? thanks

  8. Rob says:

    Thanks, it worked for me, I just want to ask is there a way to increase the size of these images? Thanks again for the code.

  9. Ana says:

    Works just fine on wp 5.3.2.! Thank you so much.

  10. khalid sultani says:

    has any one found how to make image size bigger.

  11. miwa says:

    Hello.

    Thank you for the great information.

    I want to display the product image thumbnail in the email sent when purchasing the downloaded product.

    I want to display the product image thumbnail before the product name in the download table.

    I want to know how to display it in the download table. I know the following method ↓

    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;

    }

    Please tell me.

  12. Mukesh Ydv says:

    It actually works. Thanks!!

Leave a Reply

Your email address will not be published. Required fields are marked *