K
K
kamisarlapsha2019-02-08 01:12:08
opencart
kamisarlapsha, 2019-02-08 01:12:08

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);
  }

But the question is how to automatically update the order status after 3 days. That is, update its history like this:
$this->model_checkout_order->addOrderHistory($order_id, 7, '', false, false, false);

Opencart version 2.3. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2019-02-24
@amfetamine

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 question

Ask a Question

731 491 924 answers to any question