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
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
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";
}
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";
}
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:
I hope someone know, how to get it working.
nmik
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 comment is only visible in the backend at customers/orders/order comment....."The comments for your order are: (I expect the customers comment here)
Please transfer the total amount to the following bank account."....
I hope someone know, how to get it working.
nmik
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. 

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!
Thanks!
I found a way to do this, instead of replacing the below like wizz suggested: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!
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";
}
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();
Hope this will help someone...
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
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
Reason: Removed smilies
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.
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.
Who is online
Users browsing this forum: No registered users and 9 guests