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.

enter image description here

Any solutions?

Was it helpful?

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; }

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top