How to use Ubercart product SKU as a condition in Rules? I need to display a message on the cart page if one or more specific SKUs are added to the cart.

For example, if a product with SKU # ABC123 is added to the cart, the Rule should be triggered and thus display a message... if a product with SKU # XYZ789 is added to the cart, the Rule would not be triggered and no message would be displayed.

It seems like this should be a fairly simple function, but for the life of me I cannot find a way to accomplish this. Can anyone please point me in the right direction?

Thanks!
This answer does not use Rules, but rather hard-coding inside of the cart template.

As the message should be displayed each time the user is on the /cart page, something like this might work. If page--cart.tpl.php doesn't exist, create it and add ...

$items = uc_cart_get_contents();
foreach($items as $item) {
    if($item-&gt;model == 'ABC123') {
        drupal_set_message('Item ABC123 is in the cart');
    }
}