Retrieve Catalogs

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)
Posts: 32
Joined: 05 Oct 2019, 06:42

Retrieve Catalogs

Post by adityabanerjee » 29 Nov 2020, 09:39

Hi guys,

I am trying to retrieve the catalogs and in such a case I am using the below code.

Code: Select all

$context = app('aimeos.context')->get();
$manager = \Aimeos\MShop::create( $context, 'catalog' );
$items = $manager->search( $manager->filter(), ['media', 'text'] );

foreach( $items as $item )
   $textItem = $item->getRefItems( 'text' );
   if( $textItem->getLanguageId() === 'ar' ) { ... }
   $mediaItem = $item->getRefItems( 'media' );
but this is giving me error -:

Symfony\Component\Debug\Exception\FatalThrowableError Too few arguments to function Aimeos\MW\Common\Manager\Base::filter(), 0 passed and exactly 1 expected

What could be done in such a case?

User avatar
Posts: 5436
Joined: 01 Jan 1970, 00:00

Re: Retrieve Catalogs

Post by aimeos » 30 Nov 2020, 13:43

Which Aimeos version do you use? Please share details about your environment.
Professional support and custom implementation are available at
If you like Aimeos, Image give us a star

Post Reply