inventory
inventory copied to clipboard
Fixed- configurable product not back in stock after updating qty for the variant product by API/import
Preconditions (*)
- Magento 2.4.6-p1
- Indexing mode should be "Update by Schedule"
Description (*)
If the configurable product goes out of stock after shipment is created. and you update variant product stock by API/import then the configurable product stock status was not updated automatically. In the backend configurable product status shows in stock but when you visit the configurable product in the frontend then it is showing as out of stock.
Fixed Issues (if relevant)
- Related issue: https://github.com/magento/inventory/issues/3358
Manual testing scenarios (*)
- Configurable product set up with one or more simple products
- At least one simple product in stock and other should be out of stock
- Place an order with the whole qty for config’s variant product which is in stock
- Create shipment for the order which you placed
- Go to the frontend and see config’s product goes out of stock.
- Add qty for config’s variant product by Api (use this endpoint rest/all/V1/products/{SKU}/stockItems/{ID})
- Go to the frontend and see config’s product still out of stock.
Additional information (*)
In “cataloginventory_stock_status” table configurable product status is not updated after the variant product is back in-stock.
Questions or comments
Contribution checklist (*)
- [ ] Pull request has a meaningful description of its purpose
- [ ] All commits are accompanied by meaningful commit messages
- [ ] All new or changed code is covered with unit/integration tests (if applicable)
- [ ] All automated tests passed successfully (all builds are green)
@magento run all tests
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.
@magento run all tests
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.
@magento run all tests
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.
@magento run all tests
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.