N
N
nikitoshq2020-01-10 10:56:13
opencart
nikitoshq, 2020-01-10 10:56:13

How can I get order data in opencart?

The bottom line is that on the success.php page I need to get order data and after processing it, as I understand it, the method is used for this:

$order_info = $this->model_account_order->getOrder($order_id);

He, as I understand it, takes the order data from the information about the buyer's orders. But when the user is not registered, the data cannot be obtained, because the method does not return anything. How can this be changed? Maybe there is some method that returns the data of the last order? And will it be the right decision?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question