• OK refer to this page
    http://wordpress.org/support/topic/plugin-woocommerce-add-product-thumbnail-to-email-templates?replies=4

    ( this was closed so couldnt add to it)

    I followed the instructions here
    Mr Black said to use this

    so if you want the default 32×32 thumbnail you can replace it for:

    <?php echo $order->email_order_items_table( true, false, true, true ); ?>

    or

    <?php echo $order->email_order_items_table( true, false, true, true, array( WIDTH, HEIGHT ) ); ?>

    to display a WIDTH x HEIGHT thumbnail.
    The code about will add a product Image to the New Order Email but will not show the SKU number beside it.
    If you want the SKU number as well use this code..(all I did was change the false, true, false, true around. AND I dont know what they mean but one means show the SKU)

    With SKU and pic
    <?php echo $order->email_order_items_table( false, true, false, true, array( WIDTH, HEIGHT ) ); ?>

    And the question that was asked is “Where do I change this.”
    If you look under
    Woocommerce / Emails / New Order and edit it here. Then find the code listed as <?php echo $order->email_order_items_table( false, true ); ?>
    and change that.
    It should work when you get an admin email for a new order.

    this worked for me in WC Version 2.1.11

    Hope this explains it ok

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, this is great but now I get an image and the product title right beside it without any kind of margin. Do you know how I can get the product name to start on the next line instead?

    Thread Starter wealthy

    (@wealthy)

    Its been so long since I did this and it was for a customers site.
    I am not sure sorry

    If I were you I would put this question to the WooCommerce forum.

    I think I got the above info from there anyway..

    Hope you sort it out.
    If you do please come back here and post it so others in future can see the fix..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Woocommerce] Add Product Thumbnail to email templates’ is closed to new replies.