inventory icon indicating copy to clipboard operation
inventory copied to clipboard

Fixed- configurable product not back in stock after updating qty for the variant product by API/import

Open paresh6002 opened this issue 2 years ago • 8 comments
trafficstars

Preconditions (*)

  1. Magento 2.4.6-p1
  2. 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)

  1. Related issue: https://github.com/magento/inventory/issues/3358

Manual testing scenarios (*)

  1. Configurable product set up with one or more simple products
  2. At least one simple product in stock and other should be out of stock
  3. Place an order with the whole qty for config’s variant product which is in stock
  4. Create shipment for the order which you placed
  5. Go to the frontend and see config’s product goes out of stock.
  6. Add qty for config’s variant product by Api (use this endpoint rest/all/V1/products/{SKU}/stockItems/{ID})
  7. 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.

stock-status-img

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)

paresh6002 avatar Jul 19 '23 13:07 paresh6002

@magento run all tests

paresh6002 avatar Jul 20 '23 04:07 paresh6002

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

paresh6002 avatar Dec 26 '23 10:12 paresh6002

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

paresh6002 avatar Dec 28 '23 05:12 paresh6002

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

paresh6002 avatar Jan 01 '24 05:01 paresh6002

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.