S
S
Sergey Mironov2016-06-28 07:58:44
opencart
Sergey Mironov, 2016-06-28 07:58:44

How to get the last order number in opencart?

Hello!
How to get the last order number in opencart in category.tpl?
I tried this, but something doesn't work:
<?php
$orderLast = $this->db->query("SELECT * FROM `order` ". "ORDER BY `order`.`order_id` DESC LIMIT 1");
echo $orderLast;
?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2016-06-28
@amfetamine

of course it will not work, the result must be processed before returning

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question