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
quantity_and_stock_status display result is wrong in product listing(Grid). #16209
Comments
This issue is already generated in #15201 |
Any update ? |
Hello @karangar, thank you for your report. |
I confirm the issue. We have the same by a merchant. Investigation in progress on our side for a fix |
Here is a statement of my first analyzes regarding "quantity_and_stock_status" attribute:
I give a try to see if it's working |
This worked for me: As I have a specific function to update inventory that extends \Magento\CatalogInventory\Model\StockRegistry, I called inside it, but if you use Magento itself you should create a plugin to be called after you have run the function Magento\CatalogInventory\Model\StockRegistry::updateStockItemBySku(). At each inventory update, this function updates the is_in_stock status of the parent product by adding the items of the child products: `
Hope this helps! Thank you! |
#SQUASHTOBERFEST |
Hi @krotus. Thank you for working on this issue.
|
Hi @XxXgeoXxX. Thank you for working on this issue.
|
✅ Jira issue https://jira.corp.magento.com/browse/AC-1031 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Alfa. Thank you for verifying the issue. |
HI @karangar, Thanks for your reporting and collaboration. We have verified the issue in Latest 2.4-develop instance and the issue is no more reproducible. Hence We are closing this issue. Thanks. |
Preconditions
I have added product attribute(quantity_and_stock_status) column in catalog product admin grid for the filtering the "In Stock" and "Out of Stock" products list.
1.Magento 2.2.4
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: