title: Shopify/Liquid, add product variant of specific size to cart
body: <p>im probably having this issue due to my lack of my experience with the liquid and the shopify platform in general.</p>
  <p>Here's my issue:</p>
  <p>In the current theme im working on, when a product is added to card it is always adding the smallest available size. Im not 100 % confident this is the code that is actually doing it but im fairly positive it is.</p>
  <p><code>onclick=&quot; Shopify.addItem('{{ product.variants.first.id}}', 1);</code></p>
  <p>Currently when this code is fired the products smallest size (assuming its the <em>first</em>) is added to the cart.</p>
  <p>I tried to take a look at the shopify API documentation for product.variants but it seems the theme or store is not using the latest version since I cant find any references to this first property.</p>
  <p>What I would like if for there to be control in terms of product size when the add to cart action is triggered. Instead of adding the smallest size always it can persay add <code> product.variants.{SIZE}.id</code> instead (Not actual code just a guess)</p>
  <p>If anyone could point me in the right direction of proper documentation for something like this or if you've had a similar question I would greatly appreciate it!</p>