Shopify: Add to Cart button on Collections page only adds the last product on page
<p>I want to have the Add to Cart button on my collections page (eg - example.com/collections/collection-name) next to each product.  So if I have 20 products on the page I want to have 20 Add to Cart buttons, next to their respective product. </p>

<p>I edited <strong>product-card.liquid</strong> with the following: </p>

<p>
      </p>

<pre><code>      &lt;select name="product-form-{{ product.variants.first.id }}" id="product-form-{{ product.variants.first.id }}" class="product-form__variants"&gt;
        {% for variant in product.variants %}
          &lt;option {% if variant == current_variant %} selected="selected" {% endif %} data-sku="{{ variant.sku }}" value="{{ variant.id }}" {% unless variant.available %} disabled="disabled" {% endunless %}&gt;
            {% if variant.available %}
              {{ variant.title }} - {{ variant.price | money_with_currency }}
            {% else %}
              {{ variant.title }} - {{ 'products.product.sold_out' | t }}
            {% endif %}
          &lt;/option&gt;
        {% endfor %}
      &lt;/select&gt;
      &lt;div class="product-form__item product-form__item--quantity"&gt;
        &lt;label for="Quantity"&gt;{{ 'products.product.quantity' | t }}&lt;/label&gt;
        &lt;input type="number" id="Quantity-{{ product.variants.first.id }}" name="quantity" value="1" min="1" class="product-form__input"&gt;
      &lt;/div&gt;
      &lt;div class="product-form__item product-form__item--submit"&gt;
        &lt;button name="add" class="btn btn--full product-form__cart-submit"&gt;
          &lt;span id="AddToCartText-{{ product.variants.first.id }}"&gt;{{ 'products.product.add_to_cart' | t }}&lt;/span&gt;
        &lt;/button&gt;
      &lt;/div&gt;
    &lt;/form&gt;
</code></pre>

<p>The issue is that when I click Add to Cart on the 1st product on the page, the last product on the page is added to Cart. </p>

<p>Is there an existing onclick event for Add to Cart that finds the last product id on the page and adds that to the cart?  I am using the Venture theme. </p>

<p>What am I missing? </p>