title: Magento custom shipping cost
body: <p>Is there a way to add a custom shipping rate for to basket (order) in magento not from admin but in programing.</p>
  
  <p>What I need is, I will have a field with each product "shipping_cost" , now suppose customer added 3 products to basket, now the shipping cost of the order will be the highest of shipping_costs of the products. For example, the 3 products have shipping_costs like $10, $20 and $30 , so the shipping_cost for basket will be $30.</p>
  
  <p>Please help me out.</p>