Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Missing payment details in HTML checkout email

Missing payment details in HTML checkout email

Locked

Views: 1,968

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
12 May 2007, 10:07 PM
#1
m_and_s avatar

m_and_s

New Zenner

Join Date:
Oct 2006
Posts:
21
Plugin Contributions:
0

Missing payment details in HTML checkout email

Hi!
I am missing payment details (payment-footer) in HTML checkout emails.
I have this problem for the following Payment modules:

  • **Check/Money Order **
  • Postepay (additional module from italian Zen-Cart)Looking at the email source, I found the td empty:
<td class="**payment-footer**"></td>

In text format emails or looking at the text version of the html email, I can read the complete details.

I checked email_template_checkout.html, and I have there a row for
$PAYMENT_METHOD_FOOTER

Is there someone that can help me finding the reason?
What I am missing?
Thanks

13 May 2007, 11:03 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Missing payment details in HTML checkout email

There were some fixes for that in some of the newer releases.

Essentially, there is a line in the bottom of /includes/classes/order.php, which should read thus:```
$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'];


To locate that line on your installed version, simply do a search for ['PAYMENT_METHOD_FOOTER']
Then make the appropriate adjustments.
14 May 2007, 9:31 AM
#3
m_and_s avatar

m_and_s

New Zenner

Join Date:
Oct 2006
Posts:
21
Plugin Contributions:
0

Re: Missing payment details in HTML checkout email

Thank you MrByte :clap:
I found that row and fixed the problem changing it to:

$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']] && $GLOBALS[$payment_class]->email_footer != '') ? $GLOBALS[$payment_class]->email_footer : $GLOBALS[$payment_class]->email_footer );