$order_number = $order->get_order_number();
$order_date = wc_format_datetime( $order->get_date_created() );
$billing_name = $order->get_formatted_billing_full_name();
$billing_email = $order->get_billing_email();
$billing_phone = $order->get_billing_phone();
$payment_method = $order->get_payment_method_title();
$shipping_method = $order->get_shipping_method();
$currency = $order->get_currency();

/**
* Dynamic banner image:
* Pulls the first product image from the order.
*/
$banner_image_url = ”;

foreach ( $order->get_items() as $item ) {
$product = $item->get_product();

if ( $product && $product->get_image_id() ) {
$banner_image_url = wp_get_attachment_image_url( $product->get_image_id(), ‘large’ );
break;
}
}

if ( ! $banner_image_url ) {
$banner_image_url = wc_placeholder_img_src( ‘large’ );
}
?>

 

 

 

<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>

Your Order Is
Confirmed

Thank you for shopping with
We’ve received your order and it’s now being prepared.

Order Confirmed

Order ID :
|
Order Date :

Total Order :
$product_name = $item->get_name();
$quantity = $item->get_quantity();
$subtotal = $order->get_formatted_line_subtotal( $item );$product_image = ”;if ( $product && $product->get_image_id() ) {
$product_image = wp_get_attachment_image_url( $product->get_image_id(), ‘thumbnail’ );
}
?>

ProductQtyPrice

<?php echo esc_attr( $product_name ); ?> ‘after’ => ”,
‘separator’ => ‘
‘,
‘echo’ => false,
)
)
);
?>
Subtotal
Discount–
Shipping




Tax
Payment Method
Grand Total

Customer Details

Name:
Email:


Phone:

Billing Address

Shipping Address

? wp_kses_post( $shipping_address )
: wp_kses_post( $order->get_formatted_billing_address() );
?>



◎



✉



IG



TT



SC

All Rights Reserved