Post by jeannenot » Thu Aug 06, 2009 6:14 pm

Hello,

I've found some bugs with the comments orders.

1/ The update query in admin / model / customer / order don't save the comments in the order table :

open the file admin / model / customer / order.php and replace the update query (line four) with :

$this->db->query("UPDATE `" . DB_PREFIX . "order` SET order_status_id = '" . (int)$data['order_status_id'] . "', date_modified = NOW(), comment = '" . $this->db->escape(strip_tags($data['comment'])) ."' WHERE order_id = '" . (int)$order_id . "'");

2/ The comment is not display to the user, so :

a) open the file admin / controller / customer / order.php

b) replace the line :
$this->data['comment'] = @$this->request->post['comment'];

with:

if (isset($this->request->post['comment'])) {
$this->data['comment'] = $this->request->post['comment'];
} else {
$this->data['comment'] = @$order_info['comment'];
}


it's all ! :D

Newbie

Posts

Joined
Thu Aug 06, 2009 6:00 pm

Post by jeannenot » Fri Aug 07, 2009 8:17 pm

Hi,

Not follow the b point for this fix. it's a mistake :P

Newbie

Posts

Joined
Thu Aug 06, 2009 6:00 pm

Post by Daniel » Fri Aug 07, 2009 8:57 pm

there is nothing wrong with the comments!!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 7 guests