about stock level

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
GülsümAkça
Posts: 57
Joined: 20 Nov 2020, 13:30

about stock level

Post by GülsümAkça » 29 Mar 2021, 22:57

I want to get stock level of the product in the catalog/detail/body-standard.php, how can i do that

thank you :)

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

Re: about stock level

Post by aimeos » 31 Mar 2021, 17:05

Just add "stock" to this configuration:
https://aimeos.org/docs/2020.x/config/c ... l/#domains

Then, you can get the stock items using:

Code: Select all

$stockItems = $this->detailProductItem->getStockItems()
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply