-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magento 2 REST API compatibility #217
Comments
Hello @nghelo and thank you for submitting this issue, and for using our module. You are right, actually it is impossible to retrieve the product list associated to a virtual categorie via the API. This is a known limitation of the module and we'll probably fix it on a later version. We keep this issue open and will keep you in touch about this one. Best regards, |
Hi @nghelo, I didn't have time to review this issue before but I think there is an important things here. As a matter of semantic, It is fully expected that you are not able to list products inside a category if you are using this API : For a standard Magento, it is not consistent with what you will see in the front layered navigation :
Concerning virtual categories, products are never attached to the category and this behavior appears to be normal and consistent with Magento API semantic. We are currently working on repairing the Magento Search API ( There is a WIP for this there : https://github.com/afoucret/elasticsuite/tree/fix-search_api and should be released in 2.3.0 or 2.4.0 depending how we are fast to implement it. |
TL;DR : we will not work on the category products API but rather implement the search API to be consistent with the layered navigation / search result |
Hi, any news on the search API integration ? |
Hello, any news? The #13 is returning a bad fatal error and is not good... |
I followed the fix#14 like https://github.com/afoucret/elasticsuite/tree/fix-search_api. But I still get error message which says |
@sibhis for me the error was caused by another module and not elasticsuite, try to debug your code |
See PR #700 which aims to implement search API support. Done :
Now missing :
|
Update :
|
How it possible query for products fultered by category and some of attributes? |
Hello @Koc Actually, you can use the legacy Magento2 search API according to the documentation and you will obtain results based on Elasticsuite. What is actually missing is the aggregation support : aggregation are not sent back in the API response. It's scheduled for next major release (2.7) and have max priority. Regards |
Thank you. Aggregation support would be very useful for shops which uses Magento in headless mode. |
Search API was fully integrated in latest 2.7.0 release. I close this one. |
Hello, thank for a great suite, that you guys have developed. How do I create a virtual category and set rules for it via API? PS To see what it might look like, I manually created a virtual category and set rules for it, but when I retrieve info about this category via API, 'virtual_rule' value is just an empty list. Why is that? Where do I find en example for setting rule for a virtual category via API? Thanks. |
I'm trying to list all products for each category but I can't list products inside the virtual categories that follow the virtual rules. Is this possible using the Magento 2 REST API?
Thanks.
The text was updated successfully, but these errors were encountered: