Skip to content

2.2.6 CE Buying the last of a simple product does not clean parent configurable product cache #19043

Closed
@AndrewPenry

Description

@AndrewPenry

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 (*)

  1. Magento 2.2.6
  2. PHP 7.0
  3. All default options. Manage Stock is ON.

Steps to reproduce (*)

  1. 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.
  2. Visit the product page (test.html). Select the RED option and Add to Cart.
  3. Proceed with a successful checkout.
  4. Visit the product page (test.html). Attempt to select the RED option.

Expected result (*)

  1. 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 (*)

  1. You can select RED and click Add to Cart. When you do, you get the "You need to choose options for your item." message.
  2. Manually flushing the cache (or casuing it to be flushed by saving the product) will remove the RED option.

Metadata

Metadata

Assignees

Labels

Component: ConfigurableProductFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions