Order.id not found
Posted: 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 -:
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.
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.