Get attributes in product list in v22
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Get attributes in product list in v22
With older versions I was able to get the product attributes via
after having modified the catalog lists domains to include 'attribute'.
With v22, $productItem->getRefItems() will show my attribute, however I don't know how to fetch it anymore.
The debug output will only display this:
What changed?
Code: Select all
$myattribute = $productItem->getRefItems( 'attribute', 'myattribute', 'default' );
With v22, $productItem->getRefItems() will show my attribute, however I don't know how to fetch it anymore.
The debug output will only display this:
Code: Select all
Aimeos\Mapprototypeobject (empty)
methods => protectedarray(empty)
delim => protected'/' (1 chars)
list => protectedarray(empty)
sep => protected'/' (1 chars)
Re: Get attributes in product list in v22
The only difference is that items are lazy loaded now.
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: Get attributes in product list in v22
I had falsely added the attribute as an option instead of a characteristic.