JsonApi: Stock level mixed with f_catid when fetching products
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
JsonApi: Stock level mixed with f_catid when fetching products
Hi dear aimeos team
Fetching products from options.meta.resources.product shows all products, which is expected.
But when I add filter[f_catid] it shows only products in stock.
Is there a way to show all products regardless of stock in that case?
Also couldn't find a filter for stock when fetching products. Is there any? For example to show only products in stock or maybe filter products with stock level more that 10.
Aimeos: 2023.10
PHP: 8.1.2
Env: Linux
Fetching products from options.meta.resources.product shows all products, which is expected.
But when I add filter[f_catid] it shows only products in stock.
Is there a way to show all products regardless of stock in that case?
Also couldn't find a filter for stock when fetching products. Is there any? For example to show only products in stock or maybe filter products with stock level more that 10.
Aimeos: 2023.10
PHP: 8.1.2
Env: Linux
Re: JsonApi: Stock level mixed with f_catid when fetching products
The f_catid parameter doesn't filter by product.instock property so there must be something else:
- https://github.com/aimeos/ai-client-jso ... d.php#L373
- https://github.com/aimeos/ai-controller ... #L218-L254
- https://github.com/aimeos/ai-client-jso ... d.php#L373
- https://github.com/aimeos/ai-controller ... #L218-L254
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: JsonApi: Stock level mixed with f_catid when fetching products
Thanks for the info. Fixed! I forgot to run the cronjobs and the index was not fresh