Retrieve stock level on product detail page
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!
Retrieve stock level on product detail page
I need to be able to retrieve and print the actual stock level directly on the catalog/details section for each individual product. Thanks for any help in advance.
Re: Retrieve stock level on product detail page
You mean in the PHP templates and without waiting for the XHR stock level request to finish?
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: Retrieve stock level on product detail page
I would love to be able to do it both ways. On the PHP templates directly and through the Ajax request.
Re: Retrieve stock level on product detail page
There data is already available via XHR and you can exchange its template if you want to display that in a different manor:
https://github.com/aimeos/ai-client-htm ... efault.php
To have the stock level available in the catalog list and detail view too, you need to implement a decorator that retrieves the stock levels via the controller (https://github.com/aimeos/ai-controller ... /Iface.php) and adds that data to the view:
https://aimeos.org/docs/Developers/Html ... components
https://github.com/aimeos/ai-client-htm ... efault.php
To have the stock level available in the catalog list and detail view too, you need to implement a decorator that retrieves the stock levels via the controller (https://github.com/aimeos/ai-controller ... /Iface.php) and adds that data to the view:
https://aimeos.org/docs/Developers/Html ... components
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