Answer the question
In order to leave comments, you need to log in
How to cancel an order after Opencart 2.3 time?
Hey! I put the order canceled through a function in the controller.
Here is the function in the controller:
public function cancel() {
$this->model_checkout_order->addOrderHistory($order_id, 7, '', false, false, false);
}
$this->model_checkout_order->addOrderHistory($order_id, 7, '', false, false, false);
Answer the question
In order to leave comments, you need to log in
make the controller separate, it has a status update for orders with a date greater than 3 days and other conditions and run it by cron
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question