Get Product By Code

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!
syedaliiftikhar
Posts: 12
Joined: 19 Apr 2024, 18:29

Get Product By Code

Post by syedaliiftikhar » 17 May 2024, 17:26

Is there a method to retrieve a product by its code directly? Similar to how we use the get() method to fetch by ID, is there a faster approach for fetching by product code?

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

Re: Get Product By Code

Post by aimeos » 17 May 2024, 17:35

Use the find() method of the manager:
https://aimeos.org/docs/latest/models/m ... #find-item
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply