Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support karlalevelup

    (@karlalevelup)

    Hello,

    Thank you for reaching out to us.

    There is a built-in option to show the product images. Go to Email Customizer > Content > Order Items > PRODUCT IMAGE OPTION option.

    If this is not what you want to show, could you send where you want those custom images to show so we can better assist you? For an example and code reference, you can try this out:

    function render_product_short_description($item_id, $item, $order){
        $_product = $order->get_product_from_item( $item );
        echo "<br>" . $_product->post->post_excerpt; 
    }
    
    add_action('woocommerce_order_item_meta_end', 'render_product_short_description',10,3);

    This snippet will show the product short description on the order details table. You can edit it to show your custom field image value instead.

    Hope this helps.

    Best Regards,
    Karla

    Thread Starter peratio

    (@peratio)

    I want to show the image below the header and based on the order status I want to show different images in email. For example, I want to show different images on processing orders and different images to order complete emails.

    Place where I want to add custom images: https://pasteboard.co/Kgudpaa.png

    Hope I have explained you better.
    Thanks & Regards

    Plugin Support karlalevelup

    (@karlalevelup)

    Hello,

    I believe that would require overriding the email templates. There are no WooCommerce hooks to show custom content based on which email template it is.

    If you look at our plugin email template files on the kadence-woocommerce-email-designer/templates/woo/emails/ folder, you’ll see instructions on how to override them. However, if you are not sure how to do this, I would recommend hiring a developer to help you.

    Hope this helps.

    Regards,
    Karla

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Want to add custom image as feild in emails.’ is closed to new replies.