title: Magento custom option value and option title store when the user add product to cart
body: <p>I want to store values in session as like below</p>
  
  <pre><code>option =&gt; array (
     ['option_display] =&gt; array(
          'color' =&gt; 'white',
           'RAM'  =&gt; '3gb'
           ),
     ['option_details'] =&gt; array (
           '5' =&gt; '3'
           '6' =&gt; '5'
           ) );
  </code></pre>
  
  <p>Above code is the options for product to choose color and RAM are the titles for the options and their values, In option_details array contains id for the above options.
  The option display array values are need to display in front end and option details array are need to store in db.</p>
  
  <p>My code is</p>
  
  <pre><code>case 'radio':
              echo $value-&gt;getTitle();
              echo '&lt;input type="hidden" name="option_display['.$value-&gt;getTitle().']" id="option_display_'.$value-&gt;getTitle().'" /&gt;';
              echo '&lt;p class="'.(($value-&gt;getIsRequire() == 1) ? 'required' : '').'"&gt;'.(($value-&gt;getIsRequire() == 1) ? '*Required Field' : '').'&lt;/p&gt;';
              foreach ($option as $values) {
                  echo '&lt;div&gt;
                          &lt;input type="radio" name="option_value['.$value-&gt;getOptionId().']" value ="'.$values['option_type_id'].'" id="option_value_'.$value-&gt;getOptionId().'" /&gt;'.$values['title'].'
                      &lt;/div&gt;';
              }
              break;
  </code></pre>
  
  <p>If i select the values the option details are coming but option display array has only option titles no values are coming because i cant select values in hidden field
  My ouput array is</p>
  
  <pre><code>option =&gt; array (['option_display] =&gt; array(
      [color] =&gt; 
       [RAM]  =&gt; 
       ),       ['option_details'] =&gt; array (
       [5] =&gt; '3'
       [6] =&gt; '5'
       ) );
  </code></pre>
  
  <p>How can get the values in both array when user selects the option.</p>