Closed
Description
When a user purchases the last of a simple product, even though the quantity is reduced to zero, the option is not disabled until the cache is manually flushed.
Preconditions (*)
- Magento 2.2.6
- PHP 7.0
- All default options. Manage Stock is ON.
Steps to reproduce (*)
- Create a new product (TEST). Give it a price and weight. Create 2 Configurable Options for color (RED and BLUE). Give them both a quantity of 1.
- Visit the product page (test.html). Select the RED option and Add to Cart.
- Proceed with a successful checkout.
- Visit the product page (test.html). Attempt to select the RED option.
Expected result (*)
- You should not be able to select RED, because the quantity of "TEST-RED" is 0 and the status is "out-of-stock"
Actual result (*)
- You can select RED and click Add to Cart. When you do, you get the "You need to choose options for your item." message.
- Manually flushing the cache (or casuing it to be flushed by saving the product) will remove the RED option.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 releaseMajor restrictions or short-term circumventions are required until a fix is available.
Type
Projects
Status
Done