title: Programmatically add product to cart with price change
body: <p>I want to add a product to cart programmatically. Also, I want to change the product price when added to cart. </p>
  
  <p>Suppose, my product's price is $100. I wanted to change it to $90 when added to cart.</p>
  
  <p>I added product to cart. However, I am unable to change the product price.</p>
  
  <p>Is it possible?</p>
  
  <p>Here is the code to add product to cart:-</p>
  
  <pre><code>$cart = Mage::getSingleton('checkout/cart');
  
  try {   
      $cart-&gt;addProduct($product, array('qty' =&gt; 1));
      $cart-&gt;save();
  }
  catch (Exception $ex) {
      echo $ex-&gt;getMessage();
  }
  </code></pre>