title: How to show the second image of a product? PrestaShop 1.7.5.1
body: <p>I need to show a different cover image (the second, or the last, it's not important, all but not the first) only for a specific block: <code>ps_bestseller</code>.</p>
  
  <p>The only thing I found is this code was this <a href="https://stackoverflow.com/questions/40267160/how-to-display-in-product-list-the-cover-image-and-the-second-image-of-a-product">link</a>, but it works only for the 1.6 version:</p>
  
  <p>This is my default code: </p>
  
  <pre><code>{block name='product_thumbnail'}
  
      {if $product.cover}
  
        &lt;a href="{$product.url}" class="thumbnail product-thumbnail"&gt;
          &lt;img
            src = "{$product.cover.bySize.home_default.url}"
            alt = "{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}"
            data-full-size-image-url = "{$product.cover.large.url}"
          &gt;
        &lt;/a&gt;
      {else}
        &lt;a href="{$product.url}" class="thumbnail product-thumbnail"&gt;
          &lt;img
            src = "{$urls.no_picture_image.bySize.home_default.url}"
          &gt;
        &lt;/a&gt;
      {/if}
    {/block}
  </code></pre>
  
  <p>When I try to edit the code it returns a blank page.
  Any suggestion?</p>