Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2004
    Location
    Auckland, New Zealand
    Posts
    244
    Plugin Contributions
    0

    Default [Done v1.3.8] Email footer of payment modules not working in HTML email

    The data put into the $email_footer variable by payment modules never gets into the final HTML email that is sent to the customer if they have their email pref set to HTML. If they use the Plain text option the footer appears in the email as it should.

    I have traced the problem down to line 956 in includes/classes/order.php line. The line currently reads as follows:

    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'] );
    I have changed the line as follows:

    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'] );
    Notice that the end bracket for the call to is_object has moved.

    After making this change the extra info now appears in the HTML emails.

    The problem only seems to have starter since 1.3.7 as I never had problems with 1.3.6.

    Could someone please confirm if this is how the code was intended to look?

    Thanks.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Email footer of payment modules not working in HTML email

    Correct.
    Similar discussion here:
    http://www.zen-cart.com/forum/showth...535#post317535

    Fix is included in the upcoming v1.3.8
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2004
    Location
    Auckland, New Zealand
    Posts
    244
    Plugin Contributions
    0

    Default Re: [Done v1.3.8] Email footer of payment modules not working in HTML email

    Thanks DrByte. Sorry for posting it again but that thread didn't come up in my search results before I posted.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: [Done v1.3.8] Email footer of payment modules not working in HTML email

    No worries. It was a tough one to find, wasn't it. Not just the post, but the fix to the syntax error too
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. email html not working
    By christinefred in forum General Questions
    Replies: 5
    Last Post: 24 Nov 2010, 08:31 AM
  2. HTML Email not working for me
    By MW Promotions in forum General Questions
    Replies: 3
    Last Post: 15 Dec 2008, 05:41 PM
  3. HTML email english=working / dutch=not
    By Janneke in forum General Questions
    Replies: 8
    Last Post: 28 Feb 2008, 12:28 AM
  4. email footer and logo changes not working
    By zas in forum General Questions
    Replies: 1
    Last Post: 1 Nov 2006, 08:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR