Skip to content
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

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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

paresh6002
Copy link

@paresh6002 paresh6002 commented Jul 19, 2023

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: Configurable products marked out of stock - Magento 2.4.4 #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
Copy link
Author

@magento run all tests

@magento-automated-testing
Copy link

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.

@paresh6002
Copy link
Author

@magento run all tests

Copy link

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.

@paresh6002
Copy link
Author

@magento run all tests

Copy link

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.

@paresh6002
Copy link
Author

@magento run all tests

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for Review
Development

Successfully merging this pull request may close these issues.

1 participant