“Only 0 Left” message has suddenly appeared after 2.4.2 upgrade
-
15-04-2021 - |
Question
As wrote in the title, after I've upgraded from Magento 2.4.1 to 2.4.2 the message "Only 0 Left" has suddenly appeared in the product page (configurable product).
I checked in Stores->Configuration->Catalog->Inventory->Stock Options->Only X left Threshold and it's set to 0. I tried to set to -1 but nothing's changed.
Any solutions?
Solution
This is a bug affecting configurable products introduced by the new Magento_InventoryConfigurableProductFrontendUi
module in Magento 2.4.2. You can read more about the issue here: https://github.com/magento/inventory/issues/3276
As a temporary solution you can disable the module which will remove the message.
bin/magento module:disable Magento_InventoryConfigurableProductFrontendUi
OTHER TIPS
You can also use CSS to temporarily hide the "Only 0 Left"
.availability.only.configurable-variation-qty { display: none !important; }