The Order Review section of the WooCommerce Checkout Page shows the product name, quantity and subtotal. No sign of the product image, which can be very useful to identify/differentiate between similar products or product variations.
This simple snippet will help you display just that: the featured image beside the product name inside the order review table. Easy peasy. Enjoy!

PHP Snippet: Add Product Featured Image @ WooCommerce Checkout Page Order Review Table
Please note the snippet below will generate a thumbnail with size 50*50 pixels (feel free to change that size inside the array()) and will align it to the left (remove the array containing the class to avoid that in case).
/**
* @snippet Product Images @ Woo Checkout
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 5
* @community https://businessbloomer.com/club/
*/
add_filter( 'woocommerce_cart_item_name', 'bbloomer_product_image_review_order_checkout', 9999, 3 );
function bbloomer_product_image_review_order_checkout( $name, $cart_item, $cart_item_key ) {
if ( ! is_checkout() ) return $name;
$product = $cart_item['data'];
$thumbnail = $product->get_image( array( '50', '50' ), array( 'class' => 'alignleft' ) );
return $thumbnail . $name;
}
Hi,
Thank you for this amazing code!
In the mobile the image is not showing, only on desktop.
How i can fix it?
Uhm, it works for me. Can you try temporarily to switch to the Storefront theme and see if it works (this is what I use in my dev site)? If yes, then it’s a problem with your custom theme and may need a code tweak to make it compatible
Hi, thank you! Your guide was very useful for us!
Great!
Cool thanks for this snippet
You’re welcome!
It gave me this error I need your help please and thank you
Which error Pablo?
Hi thx for the guide, it works at the pc but doesnt work on mobile, may i know how to do it on mobile type?
Even if you temporarily switch to – say – Storefront theme? I fear it may be your custom theme
Hi there
this was working perfectly on woodmart theme, but suddenly there are two pictures at check out. Any ideas why this would be?
I checked I hadn’t duplicated the snippet, but after that, I don’t know!
Thank you
Amy
No prob!
I am still getting two pictures of each product at checkout. Any ideas as to how this could happen?
I find that odd. What if you switch temporarily to another theme – does it work ok?
Thank you very much for your help
I was able to display the product image in the checkout section
Can you help me how can I add a product attribute to this section?
Help us if you can
Hello Hamed, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!
Hi! Thank you so much for this, it’s wonderful. The only issue is my thumbnails are showing up twice – one right next to the other. Any idea on why this could be happening?
Thanks so much.
Siobhan
Even if you try the snippet with another theme? This may be because your theme’s custom PHP code
It used to work but after the latest Woo update some products images are now kept at their original width/height in the checkout table, though there are no differences inspecting the CSS.
Do you have any idea how it happened?
You may need custom CSS for that
Thank you for the code. It’s working perfectly on desktop but the product title does not aligned properly on mobile. Hope you can fix it.
It’s probably your custom theme. You’ll need custom CSS for that
I’m always delighted to receive your newsletter
Please consider sharing snippets to improve the checkout page to enhance one page checkout experience – with options like Remove from cart and quantity increase/decrease
Cheers!
Nice, I have been thinking how to implement this for a while now. THANK YOU!
Cool