Hi there
Not sure if anyone has a solution for this, but when I try add comments on orders without changing the order status, the comments do not save. When changing the status of orders and simultaneously add a comment, the comments save.
I was able to add multiple comments without changing the status of orders to keep track of follow up calls etc.
Joomla version 3.9
VM Version 3.4
In order list view or single order view ?
Jörgen @ Kreativ Fotografi
Yes .. if the status isn't changed the "update" does nothing
it fails the check in the orders model
public function updateOrderHistory($inputOrder)
if(empty($oldHistoryRow) or $oldHistoryRow->order_status_code!=$inputOrder['order_status_code'])
if(empty($oldHistoryRow) or $oldHistoryRow->order_status_code!=$inputOrder['order_status_code']){
$_orderHist = $this->getTable('order_histories');
$inputOrder['comments'] = nl2br($inputOrder['comments']); //would be cooler in the table check function
$_orderHist->bindChecknStore($inputOrder);
}
You could mark this as a feature request as some sort of case or switch here to just save comments without status change might be useful
or hack and comment out the if
or set it to another status with the comment then put it back to the previous
Thanks for your responses. This happens in both single and list order view.
The switching to another status is a temporary solution for now, but obviously not a great one at all. Will try comment out the "if", but where is that script?
Quoteit fails the check in the orders model
public function updateOrderHistory($inputOrder)
if(empty($oldHistoryRow) or $oldHistoryRow->order_status_code!=$inputOrder['order_status_code'])
admin - vm - models - orders.php
Thank you
I tried commenting that out, but the function of the order comments remained the same
works for me
By commenting the if condition works for me.
Thank you!