JSON API - Get product list and attributes of products belong to the catalog
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!
JSON API - Get product list and attributes of products belong to the catalog
AIMEOS Laravel 2020.10.*
Thank you so much for all your helps so far.
In my use case, I want to get the product list of a catalog and get all the possible attributes of all the products in that catalog as a filter for customer further filter rather than fetch all the attributes of the shop.
The problem is if I get the first 20 products with "include: attribute" and "f_catid" in the product Api call,
it will only return the attribute belong to the first 20 products, in some case there will be unique attributes belong to later products so I could not get it.
Is there anyway to make this use case possible without fetch all the attributes before hand but get the attributes belong to the products of a catalog?
Thank you so much for all your helps so far.
In my use case, I want to get the product list of a catalog and get all the possible attributes of all the products in that catalog as a filter for customer further filter rather than fetch all the attributes of the shop.
The problem is if I get the first 20 products with "include: attribute" and "f_catid" in the product Api call,
it will only return the attribute belong to the first 20 products, in some case there will be unique attributes belong to later products so I could not get it.
Is there anyway to make this use case possible without fetch all the attributes before hand but get the attributes belong to the products of a catalog?
Re: JSON API - Get product list and attributes of products belong to the catalog
How could I calculate the total product of each attribute of catalog with json api as the image follow?
Re: JSON API - Get product list and attributes of products belong to the catalog
Use the attribute endpoint of the JSON REST API to get all attributes:
https://aimeos.org/docs/latest/frontend ... ted-search
https://aimeos.org/docs/latest/frontend ... ted-search
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