Order.id not found

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Posts: 32
Joined: 05 Oct 2019, 06:42

Order.id not found

Post by adityabanerjee » 17 Apr 2020, 16:56

Hi Aimeos,

I am trying to get the order by id i.e order id 1. But it is throwing an 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>";

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

User avatar
Posts: 5445
Joined: 01 Jan 1970, 00:00

Re: Order.id not found

Post by aimeos » 19 Apr 2020, 07:53

You must be logged in as customer who created the order to retrieve its order details.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply