• Resolved zantos

    (@zantos)


    Hello. After much head scratching, I’ve had to ask for help. I’m not sure if it is due to the latest update to the plugin but last week I was able to attach an image of the configurated product via email using:

    function w3p_add_image_to_wc_emails( $args ) {
    $args[‘show_image’] = true;
    $args[‘image_size’] = array( 100, 50 );
    return $args;
    }

    add_filter( ‘woocommerce_email_order_items_args’, ‘w3p_add_image_to_wc_emails’ );

    very recently, the images have stopped being included and are replaced with a ‘blank.gif’ placeholder. The same is true when orders are viewed through the account page on the site.

    The image IS being generated and saved to the media library and it is visible in the checkout but I’m assuming that the email being generated on checkout isn’t pointing to the image in the media library (which is why I get the ‘blank.gif’).

    The reason why I think the Configurator might be the issue is that when I untick the ‘Show configuration image in cart and checkout’ in the configurator settings. All appears to be working correctly.

    Is there anything I’m missing or that you could advise to help?

    Many thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marc Lacroix

    (@marcusig)

    Hi there,

    I’ve done a couple of tests, and this still works as expected for me.
    What’s the full URL of the blank.gif?

    Marc

    Thread Starter zantos

    (@zantos)

    Hello Marc,

    Thanks for the reply. This is what I can see in the email source that is sent to the customer after an order is placed:

    img src=”https://ryanc198.sg-host.com/wp-includes/images/blank.gif” class=”attachment-woocommerce_thumbnail size-woocommerce_thumbnail” alt=”” data-generate_image=”product_918-conf-832-921-841-946-916-829-839-838.png-temp

    Please let me know if there’s any other information you’d like.

    hi but does this code always work?
    i test and now not have image in emails

    Plugin Contributor Marc Lacroix

    (@marcusig)

    Hi there,

    There was an issue where the configured image was replaced by an empty image for lazy loading, while it is generated.
    This obviously doesn’t work in the email, so I’ve fixed this in the previous release.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Final custom product image no longer sending on email’ is closed to new replies.