Post by wizz » Sat May 09, 2009 1:59 pm

Hallo fans,
the function Add Comments About Your Order during an order procedure are not transfered within the email to the customer, are they?

In opencart_v1.2.6/catalog/model/checkout/order.php there are the responsable lines:

if ($comment) {
$message .= $this->language->get('mail_new_order_comment') . "\n\n";
$message .= $comment . "\n\n";
}


$comment seems to be empty?

Is there a fast fix?

best regards
wizz

Newbie

Posts

Joined
Tue Apr 28, 2009 9:27 pm

Post by wizz » Wed May 13, 2009 6:44 pm

Nobody with similar problems?

Anyway, i fixed it for myself. If anybody is interested in,

I replaced
if ($comment) {
$message .= $this->language->get('mail_new_order_comment') . "\n\n";
$message .= $comment . "\n\n";
}


with

if ($this->session->data['comment']) {
$message .= $this->language->get('mail_new_order_comment') . "\n\n";
$message .= $this->session->data['comment'] . "\n\n";
}

Newbie

Posts

Joined
Tue Apr 28, 2009 9:27 pm

Post by Daniel » Wed May 13, 2009 7:20 pm

this is wrong!

the comment is for the web site to tell the client somthing. it could be the transaction id from the payment gateway.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by nmik » Thu Jun 11, 2009 10:43 pm

Hi,
I have the same problem. If a customer writes something into the comments-field, the comment is not transfered with the email, that is send to the customer and to the shopowner.

here is an example of the email:
...."The comments for your order are: (I expect the customers comment here)
Please transfer the total amount to the following bank account."....
The comment is only visible in the backend at customers/orders/order comment.

I hope someone know, how to get it working.

nmik

Newbie

Posts

Joined
Sun May 24, 2009 3:25 am

Post by Daniel » Fri Jun 12, 2009 1:08 am

Its not soposed to!!!

did you not read my last message?

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Fri Jun 12, 2009 1:41 am

why would a custome rwant to see his own order comments in a mail?

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by ven.ganeva » Thu Jul 09, 2009 4:30 pm

My comments aren't even displayed in the back end! I just placed a test order, added a test comment and when I go to view my order under customers/order/edit there is nothing there to show my comment. ???

Newbie

Posts

Joined
Mon Apr 07, 2008 6:45 pm

Post by iori57 » Thu Oct 29, 2009 3:19 am

The comments should not be included in the email confirmation the customer receives... however should be included in the email that sent to us website owner.. anyone know how to make two diff email versions? (one for customer one for ourselves with more details such as comments made by customer during checkout process)

Thanks!

Newbie

Posts

Joined
Thu Oct 29, 2009 2:37 am

Post by iori57 » Thu Oct 29, 2009 3:58 am

iori57 wrote:The comments should not be included in the email confirmation the customer receives... however should be included in the email that sent to us website owner.. anyone know how to make two diff email versions? (one for customer one for ourselves with more details such as comments made by customer during checkout process)

Thanks!
I found a way to do this, instead of replacing the below like wizz suggested:
if ($comment) {
$message .= $this->language->get('mail_new_order_comment') . "\n\n";
$message .= $comment . "\n\n";
}

you shouldn't replace it because the two comments are different things (one is additional comment made by the customer during checkout, and one is payment comment)

in order not to send the customer comment to the customer email, I only add the code below for the mail that is supposed to send to us shop owner:

Code: Select all

				if ($this->session->data['comment']) {
					$message .= "Customer's comment for this order:\n\n";
					$message .= $this->session->data['comment'] . "\n\n";
				}
only add this part above the part where the email is suppose to send back to the shop owner, which is above this section of the code:

Code: Select all

				$mail = new Mail($this->config->get('config_mail_protocol'), $this->config->get('config_smtp_host'), $this->config->get('config_smtp_username'), $this->config->get('config_smtp_password'), $this->config->get('config_smtp_port'), $this->config->get('config_smtp_timeout')); 
				$mail->setTo($this->config->get('config_email'));
				$mail->setFrom($this->config->get('config_email'));
				$mail->setSender($this->config->get('config_store'));
				$mail->setSubject($subject);
				$mail->setText($message);
				$mail->send();
That should do the trick. If I explaination made you confuse, there are two code blocks in this post, just search for the second code block inside order.php, and add the first code block just above it.

Hope this will help someone...

Newbie

Posts

Joined
Thu Oct 29, 2009 2:37 am

Post by yaxo » Sun Dec 13, 2009 5:40 am

I would like to even see comments from customer, they are not saved and not shown anywhere, I'm using the latest version 1.3.4 of OC and have searched for any answer but still haven't found any

Newbie

Posts

Joined
Fri Dec 04, 2009 3:41 am

Post by blsuk » Thu Feb 03, 2011 3:27 pm

Has anyone worked this problem out? I have just come across the post and it doesn't seem to make much sense to me.

The problem I find is comments are transferred from an online order ONLY using guest checkout, registered user orders it doesnt seem to work.

Obviously we need to see the customer's comments as part of their order so what can I do to fix this??

All help is greatly appreciated.

PS. I'm using Opencart Version 1.4.9.3
Last edited by i2Paq on Thu Feb 03, 2011 7:52 pm, edited 1 time in total.
Reason: Removed smilies

Newbie

Posts

Joined
Wed Dec 08, 2010 12:25 am

Post by Qphoria » Fri Feb 04, 2011 11:00 pm

OK just tried this on a fresh 1.4.9.3

When I checkout with registered account and enter comment...
- I see it in the admin area.
- I see it in the customer receipt email
- I see it in the admin alert email

When I checkout with a guest account and enter comment...
- I see it in the admin area.
- I see it in the customer receipt email
- I see it in the admin alert email

So I'm not seeing any issues with this now.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 6 guests