I have overridden woocommerce customer-completed-order.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
do_action( 'woocommerce_email_header', $email_heading, $email );
?>
<p><?php printf( __( "Your recent order has been completed.<br> ,'woocommerce' ) ); ?></p>
How to add image to the end of the email?
I tried
<?php echo wp_get_attachment_image( 1096 ,add_image_size('logo-size', 219,98) ); ?>
but only white space is displayed in the received email.
<?php echo wp_get_attachment_image( 1096); ?>
displays it in a cropped size.
EDIT added full customer-completed-order.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
foreach ($order->get_items() as $item_id => $item) {
$product_name = $item['name']; // product name
}
/**
* @hooked WC_Emails::email_header() Output the email header
*
*/
do_action( 'woocommerce_email_header', $email_heading, $email );
?>
<p><?php printf( __( "Your recent order has been completed, 'woocommerce' ), $product_name ); ?></p>