Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

conflict with the stock checking #22

Open
foxp2 opened this Issue · 0 comments

1 participant

@foxp2

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

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

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

            return ( ($OSCOM_Product->getQuantity() - $OSCOM_ShoppingCart->getQuantity( $OSCOM_ShoppingCart->getBasketID($OSCOM_Product->getID()) ))  > 0 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.