After upgrade to 2024.10.4 - getRefItems doesn't return data
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!
After upgrade to 2024.10.4 - getRefItems doesn't return data
Upgraded to 2024.10.4
We have been using the following code successfully for over a year. After upgrading this has stopped working.
Also, this variation has stopped working... any thoughts as to why?
OR
We have been using the following code successfully for over a year. After upgrading this has stopped working.
Code: Select all
$dbProduct = $productManager->get($productId, ['text', 'media', 'price', 'attribute']);
$long_description = $dbProduct->getRefItems('text', 'long', null)->first();
if (isset($long_description)) {
//Log::debug('description: ' . $description->get('text.content'));
$product['text_long'] = $long_description->get('text.content');
} else
$product['text_long'] = "Description not provided";
Code: Select all
$gameAttributeTypes = $dbProduct->getRefItems('attribute', 'default', 'default');
Code: Select all
$gameAttributeTypes = $dbProduct->getRefItems('attribute', null, null);
Re: After upgrade to 2024.10.4 - getRefItems doesn't return data
Fetching list items has been moved to a decorator:
https://github.com/aimeos/aimeos-core/b ... ct.php#L13
If you replace the list of decorators with an own configuration and didn't add the new decorator names, the list items won't be fetched any more.
https://github.com/aimeos/aimeos-core/b ... ct.php#L13
If you replace the list of decorators with an own configuration and didn't add the new decorator names, the list items won't be fetched any more.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: After upgrade to 2024.10.4 - getRefItems doesn't return data
Thanks... sorry for the newbie question, but should those settings go into the config/shop.php file or somewhere else?
Re: After upgrade to 2024.10.4 - getRefItems doesn't return data
Only if you want to remove entries or overwrite settings with arrays completely. Otherwise, add them to the config files in your package because then, only the listed parts are added or overwritten.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
