Get all items products
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 10
- Joined: 10 May 2021, 05:35
Get all items products
For example :
I get a product by id with method get()
$id = 10;
$context = app()->make('\Aimeos\Shop\Base\Context')->get();
$manager = \Aimeos\MShop::create( $context, 'product' );
$item = $manager->get( $id, ['text', 'media', 'price'] );
dd($item)
What method can I use to get all the items products?
I get a product by id with method get()
$id = 10;
$context = app()->make('\Aimeos\Shop\Base\Context')->get();
$manager = \Aimeos\MShop::create( $context, 'product' );
$item = $manager->get( $id, ['text', 'media', 'price'] );
dd($item)
What method can I use to get all the items products?
Re: Get all items products
Use the search() method instead:
- https://aimeos.org/docs/latest/infrastr ... arch-items
- https://aimeos.org/docs/latest/infrastr ... ch-filter/
- https://aimeos.org/docs/latest/infrastr ... arch-items
- https://aimeos.org/docs/latest/infrastr ... ch-filter/
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