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

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

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

Post by Travin » 15 Apr 2018, 07:21

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?
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

User avatar
aimeos
Administrator
Posts: 7835
Joined: 01 Jan 1970, 00:00

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

Post by aimeos » 15 Apr 2018, 07:38

You should use getProductId() to fetch the product item using the product manager (including the referenced items you need).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply