Retrieve Catalogs
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 44
- Joined: 05 Oct 2019, 06:42
Retrieve Catalogs
Hi guys,
I am trying to retrieve the catalogs and in such a case I am using the below code.
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?
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' );
}
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?
Re: Retrieve Catalogs
Which Aimeos version do you use? Please share details about your environment.
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