order product
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!
order product
Hi, please what is the function (manager and item declaration ) to have the products item of an order ;
i'm using aimeos-laravel version 2018.10 in windows 10
i'm using aimeos-laravel version 2018.10 in windows 10
Re: order product
Where do you want to sort the products?
In the Frontend Controller it's the sort() method:
https://github.com/aimeos/ai-controller ... #L157-L164
In the MShop library you can sort by using:
In the Frontend Controller it's the sort() method:
https://github.com/aimeos/ai-controller ... #L157-L164
In the MShop library you can sort by using:
Code: Select all
$filter = $manager->createSearch();
$filter->setSortations( [$filter->sort( '+', 'product.label' )] );
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
Re: order product
Which manager i have to use ! i want the complete path for declaring the manager
Re: order product
2019.x:
2018.x:
Code: Select all
$manager = \Aimeos\MShop::create( $context, 'product' );
Code: Select all
$manager = \Aimeos\MShop\Factory::createManager( $context, 'product' );
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
Re: order product
please, i mean u don't understand ! i have an order ID for a customer and i want for that order id (or item ) all the products of the customer order.
Re: order product
That's something totally different:
Code: Select all
$orderItem = \Aimeos\MShop::create( $context, 'order' )->getItem( '<id>' );
$orderBaseItem = \Aimeos\MShop::create( $context, 'order/base' )->getItem( $orderItem->getBaseId(), ['order/base/product'] );
$orderProductItems = $orderBaseItem->getProducts();
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
Re: order product
It seem this is not working for 2018.x version
Re: order product
For 2018.10:
Code: Select all
$orderItem = \Aimeos\MShop\Factory::createManager( $context, 'order' )->getItem( '<id>' );
$orderBaseItem = \Aimeos\MShop\Factory::createManager( $context, 'order/base' )->getItem( $orderItem->getBaseId(), ['order/base/product'] );
$orderProductItems = $orderBaseItem->getProducts();
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