get product data at checkout process
Posted: 10 Feb 2018, 04:50
Hey guys
Could you explain me how can I access order products data during the checkout process? I'm trying:
$orderBaseItem->getProducts() returns me an empty array.
But it saved at DB well, and I can access all products data at Orders History page from the same object Aimeos\MShop\Order\Item\Base\Standard.
But I need it at my process() too.
Thanks!
Could you explain me how can I access order products data during the checkout process? I'm trying:
Code: Select all
public function process( \Aimeos\MShop\Order\Item\Iface $order, array $params = [] )
{
$orderBaseItem = $this->getOrderBase( $order->getBaseId() );
print_r(get_class($orderBaseItem)); // Aimeos\MShop\Order\Item\Base\Standard
echo '<br/>PRODUCTS:<br/>';
print_r($orderBaseItem->getProducts());
}
But it saved at DB well, and I can access all products data at Orders History page from the same object Aimeos\MShop\Order\Item\Base\Standard.
But I need it at my process() too.
Thanks!