title: Display Product Prices for specific product in Shopify
body: <p><a href="https://i.stack.imgur.com/cxVhZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cxVhZ.jpg" alt="enter image description here"></a></p>
  
  <p>I am currently trying to display prices for all my products in my shopify store. I have managed to show this for my first product using the following code:</p>
  
  <pre><code>&lt;div class="grid__item"&gt;
  {% for collection in collections %}
  
  
  
      {% for product in collection.products %}
     {% for variant in product.variants %}
  
  
  {% if forloop.index &lt;=1 %}
  &lt;div id="temp_first" style="display:none;"&gt;
  &lt;div class="style14"&gt;Style&lt;/div&gt;
  &lt;div class="style11"&gt;(No)&lt;/div&gt;
  &lt;div class="front"&gt;&lt;img src="//files/front.jpg?v=1473520767" title="1 Sided Full Color" /&gt;&lt;/div&gt;
  &lt;div class="reverse"&gt;&lt;img src="//1/1265/7581/files/reverse.jpg?v=1473520807" title="1 Sided Only" /&gt;&lt;/div&gt;
  &lt;div class="price"&gt;&lt;a href="/products/leaflets?variant={{ variant.id }}"&gt;{{ variant.price | money | remove: '.00'}}&lt;/a&gt;&lt;/div&gt;
  
  {% elsif forloop.index &lt;7 %}
  &lt;div class="price"&gt;&lt;a href="/products/leaflets?variant={{ variant.id }}"&gt;{{ variant.price | money | remove: '.00'}}&lt;/a&gt;&lt;/div&gt;
  
  {% elsif forloop.index &lt;10 %} 
  &lt;div class="price2"&gt;&lt;a href="/products/leaflets?variant={{ variant.id }}"&gt;{{ variant.price | money | remove: '.00'}}&lt;/a&gt;&lt;/div&gt;
  
  {% elsif forloop.index &lt;13 %} 
  &lt;div class="price3"&gt;&lt;a href="/products/leaflets?variant={{ variant.id }}"&gt;{{ variant.price | money | remove: '.00'}}&lt;/a&gt;&lt;/div&gt;
  
  {% elsif forloop.index ==13 %}
  &lt;div class="price3"&gt;&lt;a href="/products/leaflets?variant={{ variant.id }}"&gt;{{ variant.price | money | remove: '.00'}}&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
  {% endif %}
  
     {% endfor %}
  {% endfor %}
  
  
  {% endfor %}
  </code></pre>
  
  <p>Now that works perfectly fine. The problem I have now is that I would like to display prices for a 2nd product and I duplicated the above code and changed the links in order to link this to the correct product page and variant and this works fine. The issue is the prices that are shown are for the first product and I don't know what I need to change in the code to target the 2nd product. Whether this is by its handle name or what, i'm just not sure, hence the need for some help.</p>
  
  <p>If somebody could please advise, how I could target the 2nd product, would really appreciate it.</p>
  
  <p>Thanks in advance.</p>