Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    171
    Plugin Contributions
    3

    Default Comments missing from Order email

    Hi

    I had an order today where the comments the customer put in did NOT appear in the order email. Just wondering if anyone can shed some light on this ?

    The code from order.php

    //comments area
    if ($this->info['comments']) {
    $email_order .= EMAIL_TEXT_COMMENTS_AREA . "\n\n". zen_db_output($this->info['comments']) . "\n" . EMAIL_SEPARATOR . "\n" ;
    $html_msg['ORDER_COMMENTS'] = nl2br(zen_db_output($this->info['comments']));
    } else {
    $html_msg['ORDER_COMMENTS'] = '';
    }


    The if statement worked correctly because it did output the EMAIL_TEXT_COMMENTS_AREA into the email - but it was blank underneath.

    In admin I can see these comments were put in -

    Delivery is to XXXXXXXXXX, who is a teacher in the Maths Department in XXXXXX. This is a surprise
    Message for card - Happy 30th birthday Auntie Patty. Love you very much. Love R?ain.xxxx


    Now the ? I suspect is a character that doesn't translate into zencart very well - but could it blank out the whole section in the email ??

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: Comments missing from Order email

    You don't indicate what version of Zen Cart you're using in your store, but older versions of ZC had more character-conversion issues that the more recent. In direct answer to your last question: Yes, a single character can nullify an entire PHP variable's data, if the character cannot be represented in the character-set your store is using.

    A couple of other settings that might be pertinent:
    1. The DB_CHARSET value, present in your store's /includes/configure.php file.
    2. The CHARSET value, present in your store's /includes/languages/YOUR_TEMPLATE/english.php (if present) or /includes/languages/english.php (if the template-override version isn't there).

  3. #3
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    171
    Plugin Contributions
    3

    Default Re: Comments missing from Order email

    Quote Originally Posted by lat9 View Post
    You don't indicate what version of Zen Cart you're using in your store, but older versions of ZC had more character-conversion issues that the more recent. In direct answer to your last question: Yes, a single character can nullify an entire PHP variable's data, if the character cannot be represented in the character-set your store is using.

    A couple of other settings that might be pertinent:
    1. The DB_CHARSET value, present in your store's /includes/configure.php file.
    2. The CHARSET value, present in your store's /includes/languages/YOUR_TEMPLATE/english.php (if present) or /includes/languages/english.php (if the template-override version isn't there).
    Using 1.5.4.

    Thanks, I'll checkout what you've suggested.

 

 

Similar Threads

  1. NMI payments: missing order comments
    By IllusionGuy in forum Addon Payment Modules
    Replies: 20
    Last Post: 3 May 2013, 09:21 PM
  2. v150 Order Comments missing
    By JBattin in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 18 Feb 2012, 07:34 AM
  3. Customer Comments section missing from my admin?
    By McGill in forum General Questions
    Replies: 2
    Last Post: 20 May 2008, 04:42 PM
  4. Check payable to info missing from order email
    By Ryk in forum General Questions
    Replies: 8
    Last Post: 27 May 2007, 09:34 AM
  5. order comments email
    By violetcandy in forum General Questions
    Replies: 0
    Last Post: 3 Sep 2006, 03:03 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