Get all items products

How to configure and adapt Aimeos based shops as developer
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!
JackDarkWeb
Posts: 10
Joined: 10 May 2021, 05:35

Get all items products

Post by JackDarkWeb » 25 Jun 2021, 10:22

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?

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

Re: Get all items products

Post by aimeos » 26 Jun 2021, 07:16

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply