Jump to content

Out Of Stock Availability Bug?


-=peter=-

Recommended Posts

Hello. In Product class, the checkQty() method should "@return bool True if product is available with this quantity", there's this check:

        if ($this->isAvailableWhenOutOfStock(StockAvailable::outOfStock($this->id))) {
            return true;
        }

But when it's oos and orders are disabled, this condition is false and it continues and checks quantity against stock (<=). So when quantity is 0 and stock is 0, it returns true while out of stock orders are disabled.

Can someone confirm?

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...