
Originally Posted by
dbrewster
in includes/modules/payment/po.php
in function po()
Code:
global $order;
$this->email_footer = MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER;
in includes/languages/english/modules/payment/po.php
Code:
define('MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER', 'with the following information:<br>
Account name: %s<br>
Account number: %s<br>
PO Number: %s');
Why not change the po.php code from this:
Code:
global $order;
$this->email_footer = MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER;
to this:
Code:
global $order;
$this->email_footer = sprintf(MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER, $this->info['account_name'], $this->info['account_number'] , $this->info['po_number']);
and this:
Code:
define('MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER', 'with the following information:<br>
Account name: %s<br>
Account number: %s<br>
PO Number: %s');
to this:
Code:
define('MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER', 'with the following information:' . "\n" . '
Account name: %s' . "\n" . '
Account number: %s' . "\n" . '
PO Number: %s');
And then just fix the order class file to convert line-breaks to BR tags, like this:
Code:
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']] && $GLOBALS[$payment_class]->email_footer != '') ? $GLOBALS[$payment_class]->email_footer : $this->info['cc_type'] );
becomes:
Code:
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']] && $GLOBALS[$payment_class]->email_footer != '') ? nl2br($GLOBALS[$payment_class]->email_footer) : $this->info['cc_type'] );
Bookmarks