title: WooCommerce get item wise shipping cost in cart page
body: <p>I am looking for a method in WooCommerce to fetch/get individual shipping price in cart.</p>
  
  <pre><code>foreach (WC()-&gt;cart-&gt;get_cart() as $hash =&gt; $item) {
      # get $item wise shipping price.
  }
  </code></pre>
  
  <p>I checked <code>/woocommerce/includes/class-wc-cart.php</code> class and I only found <code>get_cart_shipping_total()</code> which return the whole shipping price not the individual shipping price of each product.</p>
  
  <p>TL;DR</p>
  
  <p><a href="https://i.stack.imgur.com/egX3E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/egX3E.png" alt="enter image description here"></a></p>
  
  <p>I will highly appreciate if someone can guide me.</p>
  
  <p>Thanks in advance.</p>