Get Product By Code
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!
-
- Posts: 12
- Joined: 19 Apr 2024, 18:29
Get Product By Code
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?
Re: Get Product By Code
Use the find() method of the manager:
https://aimeos.org/docs/latest/models/m ... #find-item
https://aimeos.org/docs/latest/models/m ... #find-item
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)