Show all suppliers in filter dropdown

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
loeffe1
Posts: 52
Joined: 21 Feb 2020, 10:33

Show all suppliers in filter dropdown

Post by loeffe1 » 30 May 2023, 14:55

Why are suppliers limited to 100 in the filter by
$items = $cntl->compare( '==', 'supplier.id', $view->param( 'f_supid', [] ) )
->slice( 0, 100 )->search()->replace( $items );
and is there any way to remove that limitation other than settings slice to a higher value in a custom class?

In a perfect setup, only suppliers that actually have products within the current category should be shown, is there any way to achieve this?

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

Re: Show all suppliers in filter dropdown

Post by aimeos » 31 May 2023, 08:44

It has been limited in the past to limit the data that's loaded and rendered in the page so avoid slow page loads.
Since 2022.10+, suppliers are loaded dynamically using a combobox and retrieving the suppliers via JS.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply