How to get all added products

Help for integrating the Laravel package
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!
awaidqureshi
Posts: 86
Joined: 12 Jan 2019, 15:17

How to get all added products

Post by awaidqureshi » 17 Apr 2019, 06:57

We r using this code to retrieve the products,we also have given the limit of 500 butt its only getting 100 products we want all of them which are in our system .

Code: Select all

   $total=500;
        $context = app()->make('\Aimeos\Shop\Base\Context')->get();
        $manager = \Aimeos\MShop\Factory::createManager($context, 'product');
        $search = $manager->createSearch(true);
        $items = $manager->searchItems($search, ['text', 'price', 'media', 'attribute', 'product'],$total);
Please help regarding this issue .

Thanks!

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

Re: How to get all added products

Post by aimeos » 17 Apr 2019, 14:29

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

rvhelp2
Posts: 29
Joined: 29 Oct 2022, 10:10

Re: How to get all added products

Post by rvhelp2 » 26 Apr 2023, 15:12

same problem - link is outdated

i always get 100 entries, i tried limit = -1 and limit = 99000

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

Re: How to get all added products

Post by aimeos » 29 Apr 2023, 07:39

The topic is from 2019 and this in the link for newer versions:
https://aimeos.org/docs/latest/models/s ... fficiently
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply