title: Woocommerce: Creating a download link to product image
body: <p>Please have a look at my sample product page:
  <a href="http://snshpl.com.sg/product/swa-8003-t/" rel="nofollow">http://snshpl.com.sg/product/swa-8003-t/</a></p>
  
  <p>I'm currently using hooks to hardcode the download button (together with a disclaimer text) to appear right after all my products' meta, this is the code added in my theme's functions.php:</p>
  
  <pre><code>add_action('woocommerce_product_meta_end','disclaimer');
  
  function disclaimer(){
      echo '&lt;br /&gt;&lt;br /&gt;&lt;a href="#" class="single_add_to_cart_button button     
      alt"&gt;Download&lt;/a&gt;&lt;p id="disclaimer-text"&gt;&lt;br /&gt;&lt;br /&gt;*Color Disclaimer: 
      Due to the limitations of desktop scanners and the relative 
      inconsistencies of various display monitors, the colors you see on your 
      screen may not be a totally accurate reproduction of the actual product. 
      We strive to make our colors as accurate as possible, but screen images 
      are intended as a guide only and should not be regarded as absolutely 
      correct. If you would like to see a sample of any product shown on our 
      site, please call Customer Service at 6365 3383 or visit our contact 
      page.&lt;/p&gt;';
  }
  </code></pre>
  
  <p>My question is how do I extract the url of the image shown and add it to the link of the download button? I've tried various methods but not sure how to access the link which I know is extracted in the file product-image.php.</p>
  
  <p>Thanks in advance!</p>