title: Echo woocommerce product thumbnail?
body: <p>Im trying to echo WooCommerce thumbail of producs onto an orderform.</p>
  
  <p>Not sure how though though. This is what I've got so far:</p>
  
  <pre><code>&lt;?php echo  woocommerce_get_product_thumbnail();?&gt;
  </code></pre>
  
  <p>This give me the WooCommerce thumbnail placeholder. <strong>How do I pull the right one for each item in my orderform?</strong> The orderform has fields for order id, creationdate, status and price, so it does pull the proper id´s somewhere. </p>
  
  <p>This is examples of the meta keys and other fields that pull info for each order on the same form, if any of this makes any sense.</p>
  
  <pre><code> &lt;a href="&lt;?php echo $order-&gt;get_view_order_url(); ?&gt;"&gt;
    &lt;?php echo $order-&gt;get_order_number(); ?&gt;
    foreach ( $customer_orders as $customer_order ) {
        $order      = wc_get_order();
        $order-&gt;populate( $customer_order );
        $item_count = $order-&gt;get_item_count();
        $customer_orders = get_posts( 
                               apply_filters( 'woocommerce_my_account_my_orders_query', 
                                   array(
                                       'numberposts' =&gt; $order_count,
                                       'meta_key'    =&gt; '_customer_user',
                                       'meta_value'  =&gt; get_current_user_id(),
                                       'post_type'   =&gt; wc_get_order_types('view-orders'),
                                       'post_status' =&gt; array_keys(wc_get_order_statuses())
                                   ) 
                               ) 
                           );
  </code></pre>
  
  <p>This is how the php is set up. I added the first table class for the immage. </p>
  
  <pre><code>  &lt;tr&gt;              
  
          &lt;th class="order-number"&gt;&lt;span class="nobr"&gt;&lt;?php _e( 'Image', 'woocommerce' ); ?&gt;&lt;/span&gt;&lt;/th&gt;
  
              &lt;th class="order-number"&gt;&lt;span class="nobr"&gt;&lt;?php _e( 'Order', 'woocommerce' ); ?&gt;&lt;/span&gt;&lt;/th&gt;
  
              &lt;th class="order-date"&gt;&lt;span class="nobr"&gt;&lt;?php _e( 'Date', 'woocommerce' ); ?&gt;&lt;/span&gt;&lt;/th&gt;
  
    &lt;/tr&gt;
  </code></pre>
  
  <p>Then Im trying to add the image. </p>
  
  <pre><code>&lt;td class="order-image”&gt;
  
  &lt;?php  echo woocommerce_get_product_thumbnail(); ?&gt;
  
  &lt;/td&gt;
  
  
  
  &lt;td class="order-number"&gt;
  
  &lt;a href="&lt;?php echo $order-&gt;get_view_order_url(); ?&gt;"&gt;
  
  &lt;?php echo $order-&gt;get_order_number(); ?&gt;
  
  &lt;/a&gt;
  
  &lt;/td&gt;
  
  
  
  &lt;td class="order-date”&gt;
  
  &lt;time datetime="&lt;?php echo date( 'Y-m-d', strtotime( $order-&gt;order_date ) ); ?&gt;" title="&lt;?php echo esc_attr( strtotime( $order-&gt;order_date ) ); ?&gt;"&gt;&lt;?php echo date_i18n( get_option( 'date_format' ), strtotime( $order-&gt;order_date ) ); ?&gt;&lt;/time&gt;
  
                  &lt;/td&gt;
  </code></pre>