cancel
Showing results for 
Search instead for 
Did you mean: 

Add order total to order email subject line

SOLVED
Highlighted

Add order total to order email subject line

I was using the following to include the total purchase amount in the subject line of the order confirmation emails.

 

{{trans "%total" total=$order.getBaseTotalPaid()}}

 I was using the official Authorize.net Magento extension and the order totals appeared in the subject of the order emails.

 

I had to revert back to the basic Authorize.net Magento implementation after issues with the extension (Stores-Configuration-Sales-Payment Methods-Authorize.net (Deprecated), and now the total is no longer appearing.  

I cannot figure out what code to use in place of $order.getBaseTotalPaid() to get it working again.

 

Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Add order total to order email subject line

Actually figured it out.  For anyone interested, I had to use

{{trans "%total" total=$order.getGrandTotal()}}

instead. 

View solution in original post

1 REPLY 1
Highlighted

Re: Add order total to order email subject line

Actually figured it out.  For anyone interested, I had to use

{{trans "%total" total=$order.getGrandTotal()}}

instead. 

View solution in original post