L
L
leoelena2019-06-02 10:19:44
WooCommerce
leoelena, 2019-06-02 10:19:44

Why is the product image not showing in Woocommerce emails?

Hello,
email-order-details is set to 'show_image' => true, but the image is not displayed in emails to the client, what could be the reason?

<?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,
      ) );
      ?>

Thanks for the help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question