Julia Osipova Posted November 30, 2021 Posted November 30, 2021 Hello. I think, I found a bug in Commerce. Example: 1 product (physical package) with 2 options: yellow colour and blue color. In "Stock & price Adjustments" I choose option "Use different stock levels and prices depending on custom field values" and set quantities: 10 for yellow, and 10 for blue. At main page of Commerce I see "In stock" for this product. Ok. Now set quanity for yellow = 0. At main page - still "In stock". Ok And now set quantity of blue = 0. At main page I want to see "Out of stock". But I still see "In stock" I correct this in my store by theme hook for \IPS\Theme\class_nexus_front_store in "PackageBlock". But I want to inform about this bug, because it maybe has effect in other parts of Commerce.
Stuart Silvester Posted November 30, 2021 Posted November 30, 2021 Hi, I'm currently unable to reproduce this issue, changing the stock back to 0 for each of the custom field options reflects "0 in stock" as expected. Can you share a screenshot of the product configuration to see if you have something configured differently?
Julia Osipova Posted December 1, 2021 Author Posted December 1, 2021 Hi! Screenshots are below. Thanks, Julia Here is a bug code. When use "different stock level", package->stock will never be 0. It's always = -2
Solution Stuart Silvester Posted December 2, 2021 Solution Posted December 2, 2021 Thank you, we'll make sure to get this fixed in a future release. Julia Osipova and SeNioR- 2
Recommended Posts