osCommerce/oscommerce — Issue #22: conflict with the stock checking
Author: foxp2
Created: 2011-11-15 11:44:08+00:00
State: open

in \osCommerce\OM\Core\Site\Shop\ShoppingCart.php isInStock method :

```php
if ( ($Qstock->valueInt('products_quantity') - $this->_contents[$item_id]['quantity']) >= 0 ) {
```

and in \osCommerce\OM\Core\Site\Shop\Module\ProductType\RequireStock.php isValid method :

```php
return ( ($OSCOM_Product->getQuantity() - $OSCOM_ShoppingCart->getQuantity( $OSCOM_ShoppingCart->getBasketID($OSCOM_Product->getID()) )) > 0 );
```