Get the Category Position from Product
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Get the Category Position from Product
Hello,
I am searching for certain products by attribute. From these products I need the position in the respective category. I understand that a product has several categories and each its own position. Is there a way how I can include a category to get the positions via JSON API?
/shop/json-api?ai[resource]=product&ai[include]=product,attribute,price,label,media,text&ai[sort]=relevance
I am searching for certain products by attribute. From these products I need the position in the respective category. I understand that a product has several categories and each its own position. Is there a way how I can include a category to get the positions via JSON API?
/shop/json-api?ai[resource]=product&ai[include]=product,attribute,price,label,media,text&ai[sort]=relevance
Re: Get the Category Position from Product
Add "catalog" to the "include" parameter. Then, you get the categories these products are attached too and the "relationships/catalog/data" sections contain the "product.lists.position" attribution with the position of the product within that category.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Get the Category Position from Product
Thx! It is also possible to add the category filter to the attribut filter (if all products with the attribut are in the same category). then it will be auto sorted by relevance/ category index.
Re: Get the Category Position from Product
Not sure if I understand correctly what you want to achieve. Can you describe in more detail, please?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
