title: Magento Shipping costs using category and weight
body: <p>I'm working with magento 1.9.3 and need to change the shipping costs calculation based on table rate to use weight and category vs destination in the same table rate.</p>
  
  <p>I have some products need to add extra cost based on category vs destination and the rest of products use the normal weight vs destination shipping cost calculation.</p>
  
  <p>Before start coding i would like to have a different approach to find an easy and clean solution to this.</p>
  
  <h2>By now this is the idea</h2>
  
  <ol>
  <li>Add a new <code>condition_name</code> to the CSV named <code>package_weight_category</code> with category id as <code>condition value</code></li>
  <li>Modify the getRate method to find in the DDBB using the categories of the products in the cart and  <code>condition_name = 'package_weight_category'</code></li>
  <li>If anything is found save the cost</li>
  <li>Subtract the weight of the products of the categories found to the total weight</li>
  <li>If <code>weight &gt;0</code> find the cost of the updated weight and add it to the cost</li>
  <li>Return the calculated cost</li>
  </ol>
  
  <h2>My questions are</h2>
  
  <ol>
  <li>Is this solution functional? </li>
  <li>It's possible pass the info of the categories and quantity of the products to the <code>Mage_Shipping_Model_Rate_Request</code> object?</li>
  <li>Any better solution or different approach to solve this?</li>
  </ol>
  
  <p>Thanks in advance just for reading</p>