-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
"/rest/V1/products?searchCriteria" API endpoint" does not return information about stock in the "extension_attributes" section #22737
Comments
Hi @MagentoAr. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @MagentoAr do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @AlexWorking. Thank you for working on this issue.
|
Hi @AlexWorking |
any help in this issue would be great.. Thanks & Regards |
@MagentoAr , please look at my solution: Hope this helps! |
Can you find the StockRegistry.php class? |
You must override the syncProductStock method. |
i couldn't find any method called syncProductStock in this file |
@vteofilo |
Hello @MagentoAr Thank you for the report! We investigated this issue and as results:
so, I updated Issue title and description with this information |
✅ Confirmed by @sdzhepa Issue Available: @sdzhepa, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @milindsingh. Thank you for working on this issue.
|
Hi @mallikaverma. Thank you for working on this issue.
|
Hi Guys, We're also experiencing this in a production setting. Any updates would be greatly appreciated. Thanks! |
But we are still not able to find if product available in stock or not, there is no parameter in search result that shows whether the product available in stock or out of stock |
But we are still not able to find if product available in stock or not, there is no parameter in search result that shows whether the product available in stock or out of stock. |
any news about this issue? |
@scne |
Hi @scne and let me know if you need anything else 👍 |
Hi @menacoders thank you so much for your help! I'm using Magento 2.3.2, is your code compliant? |
yes, i have build it for m2.3.x |
Thank you. |
@titechnologies you mean, you only want to return the in_stock products ?
just add the quantity_and_stock_status filter so it's will return the in_stock products |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions! |
Preconditions
Steps to reproduce
/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=category_id&searchCriteria[filter_groups][0][filters][0][value]=35&searchCriteria[current_page]=1&searchCriteria[page_size]=40
Expected result
Actual result
The text was updated successfully, but these errors were encountered: