title: add to cart with custom option for virtual product in magento
body: <p>I have a one controller class that can work for adding item to cart. My scenario is 
  <br> My Product has <strong>two custom options</strong>. One is Child and another one is infant. <br>
  I want to add one custom options from these two into my shopping cart. But, I try it many different way. But, I can't see any custom option in checkout page. How can I do that. Here my code sample. </p>
  
  <pre><code>public function indexAction() {
      $products = explode(',', $this-&gt;getRequest()-&gt;getParam('products'));
      $cart = Mage::getModel('checkout/cart'); 
      $cart-&gt;init(); 
      foreach ($products as $product_id) { 
      if ($product_id == '') { 
  continue; 
      } 
      $pModel = Mage::getModel('catalog/product')-&gt;load($product_id); 
      $param = array(
          'qty' =&gt; 2,
          'options' =&gt; array(
          'option_id' =&gt; $product_id,
          'default_title' =&gt; "Ticket for Child or Infant",
          'title' =&gt; "Child 2 to 12"
          )
      );  
      if ($pModel-&gt;getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL) { 
         $cart-&gt;addProduct($pModel, new Varien_Object($param));
         Mage::getSingleton('checkout/session')-&gt;setCartWasUpdated(true);
      }
      $cart-&gt;save();
      $this-&gt;_redirect('checkout/cart'); 
  }  
  </code></pre>