Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Customer comments not coming through in email

    Hi,

    Happy new year to everyone - I'm slowly easing my way back into working mode but it's not easy!

    A new store that I have set up is all working fine, except that that customer comments are not coming through in the emails. They are showing up in Customers -> Orders in admin, but the emails to both the customer and store owner show no reference to any comments.

    I have checked the orders.php file in includes/classes and it shows the following:

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

    What should I look for to see why this is not appearing in the emails?


    Many thanks,

    J.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Customer comments not coming through in email

    Please click Reply below and answer all the questions in the Posting Tips section.
    .

    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
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Re: Customer comments not coming through in email

    Apologies. Answers below:

    Zen Cart version 1.3.9f (upgraded previously from 1.3.8)

    Only addon installed is SagePay - this is the only method of payment.

    Server OS: Linux 2.6.18-028stab068.9

    HTTP Server: Apache/2.2.11

    PHP Version: 5.2.17 (Zend: 2.2.0)

    I have looked in the source code to verify that the field in question is called 'comments', as the order.php file refers to 'comments'.

    The order is then passed to the SagePay module, and the order confirmation email comes from sagepay - I have also emailed them to ask for assistance, but haven't heard anything back yet.

    I don't know how to check if that field is being passed to the SagePay module, and because that is the only method of payment so I can't check a different payment method for comparison.

    Thanks for any light that anyone can shed on this.

    J.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Customer comments not coming through in email

    The customer's order-comments will appear on the emails sent from Zen Cart, such as the order-confirmation email.
    I don't have any details on the code in the SagePay module to know whether it even accepts comments to be submitted.
    The important email is the one from Zen Cart, since it is the complete set of order details.
    .

    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.

  5. #5
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Re: Customer comments not coming through in email

    Hi,

    Thanks for your reply.

    There were no order emails being sent from Zen Cart, and after checking in Configuration -> Email Options, I noticed that the Email Transport Method was set to 'sendmail' - I had changed this previously in an attempt to figure out a previous error.

    I changed it back to PHP and an order came through a few minutes later.

    Many thanks for your help, and I'm sure I'll be back soon with more questions!

    J.

 

 

Similar Threads

  1. Order email invoices suddenly not coming through
    By aikisho in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jul 2011, 05:23 AM
  2. Second email not coming through anymore
    By mongoosems in forum General Questions
    Replies: 1
    Last Post: 17 Sep 2010, 01:24 AM
  3. HUGE problem with customer order not coming through....
    By BenhamCollectibles in forum General Questions
    Replies: 1
    Last Post: 22 Jan 2010, 01:29 AM
  4. Confirm email for ADMIN not coming through
    By lindemann in forum Managing Customers and Orders
    Replies: 10
    Last Post: 27 May 2008, 11:14 PM
  5. Email constants not coming through
    By Dayo in forum General Questions
    Replies: 5
    Last Post: 17 Feb 2008, 11:14 PM

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