I'm running OC 3.0.3.6 on a website from about one year. Few days ago it start a strange behaviour: order can be completed properly from the user interface (with different payment method) but order_status_id is not changed, remain 0, leaving all the order "invisible" from the dashboard. (I know they are in db)
The mail with order information are sent to the customer.
There are no error in browser console.
By adding lines with $this->log->write('....') and looking at the error console, I'm trying I check what is happing.
I understood that payment gatways call when completed the $this->model_checkout_order->addOrderHistory which is located into catalog/model/checkout/order.php
addOrderHistory is ivoked with the proper order id and the right order status (in my case 2)
An event is triggered and the code inside catalog/controller/event/activity.php is executed
Code: Select all
// model/checkout/order/addOrderHistory/before
public function addOrderHistory(&$route, &$args) {
I'm expecting to see the execution of addOrderHistory from catalog/model/checkout/order.php or better in my case from /system/storage/modification/catalog/model/checkout/order.php
I put a log line of the first line of the function, but that line are not logged.
Do you have any suggestion:
- what could be happening that does not invoke properly the addOrderHistory function, and how can I identify the problem?
- nothing is really changed on the server, we did not apply any upgrade or changes since months
- maybe could be a problem with php, or how can I discover it?
Thank you very much for the help, I really don't know now how to solve it.