Display product thumbnail in Woocommerce email notifications

Question

I’ve overridden Woocommerce template file email-order-details to display the product thumbnail in customer’s email:

<?php
    echo wc_get_email_order_items( $order, array( // WPCS: XSS ok.
        'show_sku'      => $sent_to_admin,
        'show_image'    => true,
        'image_size'    => array( 100, 100 ),
        'plain_text'    => $plain_text,
        'sent_to_admin' => $sent_to_admin,
    ) );
?>

But only white space is displayed in the received email.

0
, , helen 2 years 2019-06-03T05:44:04-05:00 0 Answers 101 views 0

Leave an answer

Browse
Browse