How to get all added products
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: 86
- Joined: 12 Jan 2019, 15:17
How to get all added products
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 .
Please help regarding this issue .
Thanks!
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);
Thanks!
Re: How to get all added products
Please read this article: https://aimeos.org/docs/Developers/Libr ... in_bunches
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: How to get all added products
same problem - link is outdated
i always get 100 entries, i tried limit = -1 and limit = 99000
i always get 100 entries, i tried limit = -1 and limit = 99000
Re: How to get all added products
The topic is from 2019 and this in the link for newer versions:
https://aimeos.org/docs/latest/models/s ... fficiently
https://aimeos.org/docs/latest/models/s ... fficiently
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