• Hello,
    I just updated to version 2.5 and noticed that you made many changes to the emails. In version 2.4.13, I added a product thumbnail to emails by replacing
    <?php echo $order->email_order_items_table( $order->is_download_permitted(), true, $order->has_status( 'processing' ) ); ?> in the email tables with
    <?php echo $order->email_order_items_table( false, true, false, true, array( 100, 100 ) ); ?>
    In version 2.5 this doesnt work anymore because there is a whole new table structure.
    Could you please tell me what to do to add the product thumbnail to the emails table?
    Many thanks in advance!

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter newshop

    (@newshop)

    Ok, I found this line in email-order-details.php:
    'show_image' => false,
    When I change false to true, it shows a thumbnail.
    But why is it set to false by default? Are there any settings in woocommerce where I can turn it to true instead of editing the template file?
    Thank you!

    Plugin Contributor Mike Jolley

    (@mikejolley)

    It’s off by default because it’s not really useful to have a tiny image in a receipt. Requires template edit.

    Thread Starter newshop

    (@newshop)

    I agree that a thumbnail with 32x32px is indeed tiny and not usefull. But a bigger image (p.e. 100x100px) would be great and very usefull – thats why all big shops integrate thumbnails into mails. So I changed
    '$image_size' => array( 32, 32 ), to
    '$image_size' => array( 100, 100 ),
    But the image is still 32x32px. I cleared all caches and refreshed everything many times.
    Could you please tell me how to get the thumnail to 100x100px?
    Adding `tbody img {
    width: 100px;
    height: 100px;
    }` to email-styles.php worked but I am not sure if this is the best solution…
    Many thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add product thumbnail to emails’ is closed to new replies.