Product category not being added to the order model. Craft Commerce I've created a form in which to specify a category for a product on the product entry page. I can't seem to add the category that the customer selects to the order model. I've checked the orders in the control panel and they do not seem to be storing the category. Does anybody know how to add a selected category to the order model?

&lt;form id="values" method="POST"&gt; 
     &lt;input type="hidden" name="action" value="commerce/cart/updateCart"&gt;
     &lt;input type="hidden" name="redirect" value="cart"&gt;
     ...
     &lt;select id="chocOptions" name="chocolateOptions" class="options"&gt;
          &lt;option title="selectOption"&gt;Select Option&lt;/option&gt;
          {% for category in craft.categories.group('chocolate') %}
               &lt;option value="{{ category.title }}"&gt;{{ category.title }}&lt;/option&gt;
          {% endfor %} 
     &lt;/select&gt; 
     ...
&lt;/form&gt;
I never used Craft Commerce but you usually store relations (no matter which) with the id - not the title. So I expect the Commerce plugin will only recognize your category with this html

 &lt;select id="chocOptions" name="fields[chocolateOptions][]" class="options"&gt;
      &lt;option title="selectOption"&gt;Select Option&lt;/option&gt;
      {% for category in craft.categories.group('chocolate') %}
           &lt;option value="{{ category.id }}"&gt;{{ category.title }}&lt;/option&gt;
      {% endfor %} 
 &lt;/select&gt; 


And you have to name your field correctly like statet here

Edit
The easiest way to get to know how you have to build your html is the following


open the form in your Craft CP
Right click on the field
Click on "inspect" or "inspect element" or something like this
Search for the input or a hidden input. When I inspect a normal relation field it looks like this


&lt;div class="element small removable hasstatus" data-id="13" data-locale="de" data-status="live"
     data-label="" data-url="" data-editable=""&gt;
    &lt;!-- this is the important part --&gt;
    &lt;input type="hidden" name="fields[relation][]" value="13"&gt;
   &lt;!-- end --&gt;
    &lt;a class="delete icon" title="Entfernen"&gt;&lt;/a&gt;
    &lt;span class="status live"&gt;&lt;/span&gt;
    &lt;div class="label"&gt;
        &lt;span class="title"&gt;Some Name&lt;/span&gt;
    &lt;/div&gt;
&lt;/div&gt;