title: Woocommerce - Create custom cookie
body: <p>On my checkout page I added a custom field <code>imei</code> that receives a value from the <code>url</code>:</p>
  
  <pre><code>mydomain.com/checkout/?add-to-cart=141&amp;imei=123456789456123
  </code></pre>
  
  <p>This works fine but if I don't proceed to checkout and leave the page or close the browser, the value of the field is lost so I need to find a way to save this value until I successfully complete the checkout. </p>
  
  <p>I was thinking of using cookies for this but there isn't much info on how to do this with woocommerce.</p>
  
  <p>Any idea on how to approach this?</p>