Howdies!
I have a custom purchase order payment module, and I have configured the email order to display the additional data: account name, account number, PO number. It is working for HTML but not working for text emails.
In HTML the email looks like this:
in a text email, it looks like this:Payment Method
Purchase Order with the following information:
Account name: test acct name
Account number: test acct number
PO Number: test order number
I was unable to use Dr. Byte's updated email footer detail, it just wasn't printing the info in the HTML email. I had once had a discussion with Dr. Byte about this, and he had proposed the following code, but it did not work:[FONT=Courier New]Payment Method
------------------------------------------------------
Purchase Order
with the following information:
Account name: %s
Account number: %s
PO Number: %s[/FONT]
This is what's working for HTML email:PHP 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'];
includes/languages/english/modules/payment/po.php
includes/classes/order.php around line 992PHP Code:define('MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER', 'with the following information:<br>
Account name: %s<br>
Account number: %s<br>
PO Number: %s');
I guess the $html_msg means that this is excluded from a TEXT email. I'm wondering how to deliver the info to a text email?PHP Code:// This is for purchaseorder module email info
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']]) ? sprintf($GLOBALS[$payment_class]->email_footer, $this->info['account_name'], $this->info['account_number'], $this->info['po_number']) : ' ');
thanks!!! I love you guys.
---Diana



