Editing Magento sales e-mail payment block

Viewed 14960

app\locale\en_US\template\email\sales\order_new.html is the file in question.

How would one go about editing {{var payment_html}} without affecting other sections of the site?

It seems like the section comes from: app\design\frontend\base\default\template\payment\info\default.phtml

Am I correct about this? But that file is used in other places on the site. Is that correct too?

I want to create a separate file, say default_email.phtml, style it separately, and have order_new.phtml include the new file instead.

I assume that I need to include my default_email.phtml file in layout\***.xml. Where would I do this?

3 Answers

I had the same issue. What I did to only change the email was add the following to the payment info class.

protected function _construct() {
     parent::_construct();
     $this->setTemplate('payment/info/{new template}.phtml');
}

Then create the template and the email will insert this template to the payment section if this payment method is used.

Hope that's helpful!

Related