Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2005
    Posts
    32
    Plugin Contributions
    0

    Default [Done v1.3.8] No details in HTML email footers

    I use the new version 1.3.7 and allways my email was set to txt format.
    Now i changed it in configuration to sent emails in MIME html format. It works OK but there are no payment details in the MIME html format when moneyorder payment module is used.

    It seems that only the MODULE_PAYMENT_MONEYORDER_TEXT_TITLE is being sent to the customer in MIME html format but not the:
    MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION
    and the
    MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER.
    that contain the payment details.

    Seems like something is missing in the includes/classes/orders.php

    When i change the settings back to only txt emails this information is being sent...

  2. #2
    Join Date
    Jan 2004
    Posts
    58,249
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: No details in email mime format for moneyorder

    Aha ... a bug ...

    /includes/classes/order.php
    approx line 956 says this:

    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'] );
    there is a placement problem with one of the ) marks, and it should say this:
    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'];
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Dec 2005
    Location
    NY
    Posts
    188
    Plugin Contributions
    0

    Default Re: [Done v1.3.8] No details in HTML email footers

    Hey Doc, I didn't have the "n12br" (which is around the middle of your code) in my 1.3.7 classes/orders.php. I noticed it is in both of your code statements. I am assuming it should be there for a line break?
    Custom Golf Clubs - A ZenCart Site!
    Get fitted online for a better game!

  4. #4
    Join Date
    Jan 2004
    Posts
    58,249
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: [Done v1.3.8] No details in HTML email footers

    nl2br() means "new line to <br>" ... it converts new-line characters to <br> tags, making suitable for HTML content
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  5. #5
    Join Date
    Dec 2005
    Location
    NY
    Posts
    188
    Plugin Contributions
    0

    Default Re: [Done v1.3.8] No details in HTML email footers

    Right, I just hadn't seen it in the original line of my code, but it was in yours. Just making sure it was okay to include since I didn't have it in before.
    Custom Golf Clubs - A ZenCart Site!
    Get fitted online for a better game!

  6. #6
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: No details in email mime format for moneyorder

    Quote Originally Posted by DrByte View Post
    Aha ... a bug ...

    /includes/classes/order.php
    approx line 956 says this:

    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'] );
    there is a placement problem with one of the ) marks, and it should say this:
    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'];
    I had the same problem - Thank you Dr. Byte! Works great!

    I just noticed that when customers purchase the item which is out of stock (I did allow it in admin settings) they get the note "Products marked with *** are out of stock. Items not in stock will be placed on backorder." This information however does not appear on their (and mine) confirmation e-mails. Is there a way to rectify this? As the store owner I would find it very useful to right away be alerted that the item purchased is the backorder item and the lack of this notification might be misleading to some customers (they might think that the items are already in stock).

 

 

Similar Threads

  1. HTML email in version 1.2- can it be done?
    By purduejim in forum General Questions
    Replies: 9
    Last Post: 29 Sep 2006, 06:39 PM

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
  •