Simple plain text email for order confirmed status change

  • Posts: 8
  • Thank you received: 2
1 year 5 months ago #352605

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.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
1 year 5 months ago #352608

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.

  • Posts: 8
  • Thank you received: 2
1 year 5 months ago #352609

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: 1 year 5 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.045 seconds
Powered by Kunena Forum