Zen Follower
- Join Date:
- Jul 2005
- Location:
- Charlottesville, VA
- Posts:
- 376
- Plugin Contributions:
- 0
Text email not displaying custom payment footer
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:
Payment Method
Purchase Order with the following information:
Account name: test acct name
Account number: test acct number
PO Number: test order numberin a text email, it looks like this:
Payment MethodPurchase Order
with the following information:
Account name: %s
Account number: %s
PO Number: %sI 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:
$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'];
```This is what's working for HTML email:
includes/languages/english/modules/payment/po.php
```php
define('MODULE_PAYMENT_PO_TEXT_EMAIL_FOOTER', 'with the following information:<br>
Account name: %s<br>
Account number: %s<br>
PO Number: %s');
```includes/classes/order.php around line 992
```php
// 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']) : ' ');
```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?
thanks!!! I love you guys.
---Diana