title: Magento get product images in shoppping cart
body: <p>I'm trying to get all the product images of all the products in the shopping cart. I've used the following code:</p>
  
  <pre><code>$_item = $this-&gt;getItem();
  $_product = Mage::getModel('catalog/product')-&gt;load($_item-&gt;getProductId());
  
  foreach ($_product-&gt;getMediaGalleryImages() as $image) {
      echo var_export($image-&gt;getUrl());
      echo "&lt;br&gt;";
  }
  </code></pre>
  
  <p>But this only displays all the images of the first produuct in the shopping cart. I've tried it this way:</p>
  
  <pre><code>foreach ($this-&gt;getMediaGalleryImages() as $image) {
      echo var_export($image-&gt;getUrl());
      echo "&lt;br&gt;";
  }
  </code></pre>
  
  <p>But this doesn't return anything. How can I get all the images of all the products?</p>