-
Notifications
You must be signed in to change notification settings - Fork 9.4k
2.2.6 CE Buying the last of a simple product does not clean parent configurable product cache #19043
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
Comments
Hi @AndrewPenry. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @AndrewPenry do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
I suspect this is related to #18999 |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@engcom-backlog-nazar Thank you for verifying the issue. Based on the provided information internal tickets |
@magento-engcom-team give me 2.2.6 instance |
Hi @subbu1993. Thank you for your request. I'm working on Magento 2.2.6 instance for you |
Hi @subbu1993, here is your Magento instance. |
This is still an issue on 2.3.3. When purchasing the last available stock of a simple product associated to a configurable product, the configurable's cache tag is not cleared. The same is true of updating the stock value via API /rest/V1/products/SKU/stockItems/ITEM_ID. MAGETWO-96150 and MAGETWO-96151 were created for this in 2018. Please can we have an update of the status there? This is a pretty core mechanism of an eCommerce platform that's making stock control impossible using Magento. |
The issue looks to be that the stock status of the simples is held in the |
This comes down to the |
Checking if this is fixed in 2.4.x @magento give me 2.4-develop instance |
Hi @chris-pook. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
Hi @chris-pook, here is your Magento instance. |
I can't replicate the issue on this 2.4-develop instance, so hopefully this is fixed upstream. |
For anyone else coming across this, there is a fix as of the 2.3.4 release in the following files: https://github.com/magento/magento2/blob/2.3.4/app/code/Magento/Indexer/etc/di.xml#L70-L72 This new plugin causes the required cache flush of the parent configurable product when updating the stock values of the child simples. This fixes the issue of the configurable PDP not reflecting the updated stock status. The changes here fix the issue of all out-of-stock options for a configurable products remaining visible on PDP. |
Hi @engcom-Golf. Thank you for working on this issue.
|
Hi @AndrewPenry |
Hi @AndrewPenry, @engcom-Golf. Thank you for your report and collaboration! The related internal Jira ticket The fix will be available with the upcoming |
@magento-engcom-team can you point me to the commit where |
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 (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: