Forums / General Questions / Customer comments not coming through in email

Customer comments not coming through in email

Views: 840

Results 1 to 5 of 5
3 Jan 2012, 11:46 AM
#1
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

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! :cry:

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.

3 Jan 2012, 5:49 PM
#2
drbyte avatar

drbyte

Sensei

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

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 Jan 2012, 10:25 PM
#3
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

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.

3 Jan 2012, 11:03 PM
#4
drbyte avatar

drbyte

Sensei

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

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.

12 Jan 2012, 11:52 AM
#5
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

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. :smile:

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

J.