What happens on a mixed cart of some Products require Store Pickup and some can be shipped?

What identifies the Products that have to be Store Pickup only?