title: How to stop quantity being added back to stock when an order is cancelled in Magento
body: <p>I need to stop decreasing the stock quantity when an order is placed and reduce the stock only on successful payment because there are lot abandoned transactions on my site. I found an article to do this link, which says how to credit back the quantity to the product on redirect action and the decrease it on successful response action.</p>
  
  <p>Also I am running a cron to cancel the abandoned orders. When the orders are cancelled the quantities get added back to product stock.</p>
  
  <p>My problem is, how do I overwrite the cancel action so that the product stock is not updated when an abandoned order is cancelled?</p>