your products table needs to have a shipping column. In the admin, when you add a product. store the items shipping in that column.
then in the cart object, create a new shipping column
in the add to cart button, bind the cart shipping column to the shipping column from the products table.
create your shipping rule as as:
Multiple of column subtotal:
Subtotal of 'Shipping Column' 'times' '0'