Refitems at Aimeos\MShop\Order\Item\Base\Product\Standard
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Refitems at Aimeos\MShop\Order\Item\Base\Product\Standard
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?
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
Re: Refitems at Aimeos\MShop\Order\Item\Base\Product\Standar
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, give us a star
If you like Aimeos, give us a star