Page 1 of 1

Refitems at Aimeos\MShop\Order\Item\Base\Product\Standard

Posted: 15 Apr 2018, 07:21
by Travin
Hi
I need to get media files of added products to my mini basket. There are json string in ai-client-jsonapi which is creates from objects Aimeos\MShop\Order\Item\Base\Product\Standard
It is not objects Aimeos\MShop\Product\Item\Standard, so we don't have getListItems() method there.
As I understand, data of Aimeos\MShop\Order\Item\Base\Product\Standard is storing at mshop_order_base_product table.
I have two ways: improve Order\Item\Base\Product to give it ability to store refItems. And the second one is calling getProductId() and then use it to get Aimeos\MShop\Product\Item\Standard
Any suggestions?

Re: Refitems at Aimeos\MShop\Order\Item\Base\Product\Standar

Posted: 15 Apr 2018, 07:38
by aimeos
You should use getProductId() to fetch the product item using the product manager (including the referenced items you need).