Can't get product properties
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!
Can't get product properties
php : 8.0,
aimeos/aimeos-laravel: "~2021.07",
Hi
i was using this line of code to retrieve the properties of a product :
but now getPropertyItems() is returning an empty array , i have data in database :
iam wondering what is the problem ?
appreciate any help
aimeos/aimeos-laravel: "~2021.07",
Hi
i was using this line of code to retrieve the properties of a product :
Code: Select all
$product = $manager->get($id, ['text', 'price', 'media', 'attribute', 'product', 'catalog','product/property']);
$product->getPropertyItems()
iam wondering what is the problem ?
appreciate any help
Re: Can't get product properties
Did you pass "15" as ID to the get() method?
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: Can't get product properties
What's the output of this line?
Code: Select all
print_r( \Aimeos\MShop::create( $context, 'product' )->get( 15, ['product/property'] ) );
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