title: add product to cart with custom options
body: <p>I have to create a (virtual, simple )product and then add to cart both programmatically,  i have done this so far. now i have to set custom options when this product add to cart. but nothing happens . here is my code</p>
  
  <pre><code>  $product = Mage::getModel('catalog/product')-&gt;load($product_id);
  
      $cart = Mage::getModel('checkout/cart');
      $cart-&gt;init();
  
  
      $params = array(
          'product' =&gt; $product-&gt;getId(), // This would be $product-&gt;getId()
          'qty' =&gt; 1,
          'options' =&gt; array(
              34 =&gt; "value",
              35 =&gt; "other value",
              53 =&gt; "some other value"
          )
      );      
  
  
  
      try {   
          $cart-&gt;addProduct($product, new Varien_Object($params));
          Mage::getSingleton('checkout/session')-&gt;setCartWasUpdated(true);
          $cart-&gt;save();
      }
      catch (Exception $ex) {
          echo $ex-&gt;getMessage();
      }
  </code></pre>