Ubercart: PHP message if a Product is in cart I need help with a boolean function in PHP. It's simple (but I'm not PHP savvy enough to do it myself). I just need to create a block with a message (not a system message because I am using better messages and I don't want people to close the pop-out without even reading it) that will only show in the ubercart cart 
page, if two of the products are in the cart. Else it won't show.

Of course, if there is a better workaround tio this, I am open to suggestions.

Thanks in advance to whomever might wanna help.
Create a block with input format as php code.  uc_cart_get_contents() function will help you to get current cart products. So use it to check for your products.

eg: 

$items = uc_cart_get_contents();
// print_r($items); you can see all items in cart
foreach ($items as $item){
  //check your condition if condition true print your message,
}


Assign the block to a specific region and give display in cart page only