Page 1 of 1

Order.id not found

Posted: 17 Apr 2020, 16:56
by adityabanerjee
Hi Aimeos,

I am trying to get the order by id i.e order id 1. But it is throwing an exception -:

Aimeos\MShop\Exception

Item with ID "1" in "order.id" not found

My code-:


$context = app( 'aimeos.context' )->get();
$cntl = \Aimeos\Controller\Frontend::create( $context, 'order' )->uses(
['order/base', 'order/base/address', 'order/base/coupon',
'order/base/product', 'order/base/service'] );


echo "<pre>";
print_r($cntl->get('1'));
die;

I have checked that the order with order id 1 exists and also checked the database table.

Re: Order.id not found

Posted: 19 Apr 2020, 07:53
by aimeos
You must be logged in as customer who created the order to retrieve its order details.