Skip to main content

Simple plain text email for order confirmed status change

More
3 years 3 months ago #352605 by drop
I am trying to make very simple order confirmed status change email notification (plain text) containing basic information about order:
Order Id
invoice id
order total price
It was harder than I though because email preload template is a bit complicated to me. How can I print these 3 parameters in plain text email?
Thanks.

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago #352608 by nicolas
Hi,

It should be quite simple.
Turn off the "html" setting of the email, ignore the HTML and preload area and just customize the "text" area.
In there, you can use simple PHP. For example, to display the order_id:
<?php echo $data->order_id; ?>
The following user(s) said Thank You: ssnobben

Please Log in or Create an account to join the conversation.

More
3 years 3 months ago - 3 years 3 months ago #352609 by drop
Thank you.
I figured out that order total price could be $data->cart->order_subtotal+$data->cart->order_shipping_price.
And invoice number is:$data->cart->order_invoice_number
Seems that its working and gives right result.
Last edit: 3 years 3 months ago by drop.
The following user(s) said Thank You: nicolas, ssnobben

Please Log in or Create an account to join the conversation.

Time to create page: 0.148 seconds
Powered by Kunena Forum