how to update downloadable product quantity in shopping cart in magento thuough php
$_product = Mage::getModel("catalog/product")->load($p_id); $quote = Mage::getSingleton('checkout/session')->getQuote(); $item = $quote->getItemByProduct($_product); $quote->updateItem($item->getId(), array( 'qty' => $p_qty)); getCart()->save();