Skip to content

Commit

Permalink
adding total variable to available order email templates
Browse files Browse the repository at this point in the history
  • Loading branch information
test committed Aug 9, 2021
1 parent e9eff3b commit 6709c5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/core/Mage/Sales/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,7 @@ public function queueNewOrderEmail($forceMode = false)
$mailer->setTemplateId($templateId);
$mailer->setTemplateParams(array(
'order' => $this,
'total' => $this->formatPriceTxt($this->getGrandTotal()),
'billing' => $this->getBillingAddress(),
'payment_html' => $paymentBlockHtml
));
Expand Down Expand Up @@ -1540,6 +1541,7 @@ public function queueOrderUpdateEmail($notifyCustomer = true, $comment = '', $fo
$mailer->setTemplateId($templateId);
$mailer->setTemplateParams(array(
'order' => $this,
'total' => $this->formatPriceTxt($this->getGrandTotal()),
'comment' => $comment,
'billing' => $this->getBillingAddress()
));
Expand Down

0 comments on commit 6709c5a

Please sign in to comment.