WooCommerce: Show Product Images Checkout Page

The Order Review segment of the WooCommerce Checkout Page shows the item name, amount and subtotal. No indication of the item picture, which can be exceptionally helpful to distinguish/separate between comparable items or item varieties.

This straightforward bit will assist you with showing simply that: the highlighted picture close to the item name inside the request audit table.

PHP Snippet: Add Product Featured Image WooCommerce Checkout Page Order

add_filter( 'woocommerce_cart_item_name', 'order_checkout', 9999, 3 );
function 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;