searching for a certain attribute

Help for integrating the Laravel package
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!
User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

searching for a certain attribute

Post by ahmed31916 » 03 Jul 2022, 04:22

Hello Aimeos,

How can I searching for a certain attribute? "find" method doesn't working here:

Code: Select all

$this->detailProductItem->getRefItems('attribute')->find('color')

User avatar
aimeos
Administrator
Posts: 7923
Joined: 01 Jan 1970, 00:00

Re: searching for a certain attribute

Post by aimeos » 04 Jul 2022, 13:54

The correct code is:

Code: Select all

$this->detailProductItem->getRefItems('attribute', 'color')
See: https://github.com/aimeos/aimeos-core/b ... p#L92-L104
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply