title: Opencart option_value_id
body: <p>OpenCart attaches an html <code>value=""</code> attribute to each <code>&lt;option&gt;</code> for <code>&lt;select&gt;</code> elements on Product pages.  Currently it uses <code>product_option_value_id</code>. I need to change that to use the <code>option_value_id</code> from the <code>oc_product_option_value</code> table.</p>
  
  <p>I have created a vQmod to replace this line in my theme's <code>product.tpl</code> file.</p>
  
  <pre><code>&lt;option value="&lt;?php echo $option_value['product_option_value_id']; ?&gt;"&gt;&lt;?php echo $option_value['name']; ?&gt;
  </code></pre>
  
  <p>I tried using <code>$option_value['option_value_id'];</code> but that returns the <code>product_option_id</code>? I can't figure out what variable to use to achieve this for select options.</p>
  
  <p>Do I need to write a new query to grab this data, or is this data in a variable that is visible already in <code>product.tpl</code>?</p>