cancel
Showing results for 
Search instead for 
Did you mean: 

Order Email without Subtotal, Shipping cost, Tax, Discount, Total Amount

Order Email without Subtotal, Shipping cost, Tax, Discount, Total Amount

Hello Support Team,

 

After customer orders, we receive the order by e-mail with all necessary details.

Now, we receive the e-mail without the amount/billing details. (Subtotal, Shipping cost, Tax, Discount, Total Amount)

The complete lower box with billing details is missing, at the mail.

 

This happens only at the English language site!!

At the German site everything appears fine.

3 REPLIES

Re: Order Email without Subtotal, Shipping cost, Tax, Discount, Total Amount

 Have you had a look under System > Configuration > Sales > Sales Emails ?

 

Here you can see the email templates which are being used.

 

These templates can be found in the CMS under System > Transactional Emails.

 

Thinking about it now, this may be the place to look if you have customised templates.

 

If you are using the standard ones, you need to connect in via FTP and look inside app/locale/[language]/template/email. These html documents are what make up your order emails.

 

Re: Order Email without Subtotal, Shipping cost, Tax, Discount, Total Amount

Hi,

 

we are using the standard templates.

We even downloaded a "fresh" Magento and copied the templates into our system.

 

If we go CMS under System>Transactional EMails  and open the file, than click the save button, the error disappears for a short time.

Re: Order Email without Subtotal, Shipping cost, Tax, Discount, Total Amount

I posted this on another thread, you can add shipping cost & tax to the items being shown below

 

Go to

/app/code/core/Mage/Sales/Model/Order.php

Copy to

/app/code/local/Mage/Sales/Model/Order.php

Then add the new variables below line 1346:

$mailer->setTemplateParams(array(
'order' => $this,
'billing' => $this->getBillingAddress(),
 'payment_html' => $paymentBlockHtml,
// Adds Subtotal to email (don't forget to add the comma above this line)
'subtotal' => number_format($this->getSubtotal(), 2),
// Adds Discount to email
'discount' => number_format($this->getDiscountAmount(), 2),
// Adds Grand Total to email (don't forget to remove the comma at the end of this line)
'total' => number_format($this->getGrandTotal(), 2) ) );

The additional lines will format to two decimal places. 

 

Add the variables to your Transactional Email template:

${{var subtotal}}
${{var discount}}
${{var total}}