title: Shopify metafield product add to cart
body: <p>I created a custom metafild in shopify to add a suggested product to the product page.</p>
  <p>I have added the code to my product template and I am correctly displaying the suggested product.</p>
  <p>I want to add the add to cart button for this suggested product so that the user can add the suggested product to the cart without entering the specific page.</p>
  <pre><code> &lt;div class = &quot;groups-btn&quot;&gt;
                       {% if current_variant.available%}
                        &lt;input data-btn-addToCart type = &quot;submit&quot; name = &quot;add&quot; class = &quot;btn&quot; id = &quot;product-add-to-cart&quot; value = &quot;add&quot; data-form-id = &quot;# add-to- cart-form &quot;&gt;
                       {% endif%}
                       &lt;/div&gt;
  </code></pre>
  <p>With this code, however, I add the main product (the one on the page) to the cart, not the suggested product.
  How can I solve my problem?
  Thanks</p>