Quote Originally Posted by carlwhat View Post
try:

PHP Code:
$_SESSION['cart']->in_cart_check('products_id', {product-id to be checked}); 
best.
That is giving me the quantity of that product number in the cart, which I also needed to know. But not the actual product number itself. But it does confirm that the software is seeing '171' as the product ID, because it returns the correct quantity. So I am still totally stumped as to why this is happening:

Code:
  echo $_SESSION['cart']->get_quantity('171');  // RETURNS ZERO
  echo $_SESSION['cart']->in_cart_check('products_id', '171');   // RETURNS 1, WHICH IS CORRECT
The first comparison works for every single other product id in our inventory, but not for the one with an id of 171. That's why I was trying to find out what the code was actually seeing there. The second statement confirms that it is seeing 171. I can use the second comparison as a workaround, but the first one ought to work.