fixed checking stock status when adding product to cart