Fetch Catalog list in Laravel controller
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!
-
- Posts: 40
- Joined: 02 Dec 2021, 17:18
Fetch Catalog list in Laravel controller
I have an array of product ids, I need to fetch those products matching these products to display on browser.. How can I achieve this in Laravel controller.. I need to get all details of the product as we get on catalog list page
Help me resolve this
TIA
Help me resolve this
TIA

Re: Fetch Catalog list in Laravel controller
Use the product frontend controller:
https://github.com/aimeos/ai-controller ... e.php#L136
https://github.com/aimeos/ai-controller ... e.php#L136
Code: Select all
$context = app('aimeos.context')->get();
$cntl = \Aimeos\Controller\Frontend::create( $context, 'product' );
$ref = ['attribute', 'media', 'price', 'text'];
$products = $cnt->uses( $ref )->product( [<product IDs>] )->search()
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
