Is there a way to set the product's stock status automatically to "In Stock" after a credit memo has been created and quantity is restored?

Or would it somehow be possible to set that setting automatically to all products that has qty > 0?

  • Any movement on this? Anything I can do to help clarify an answer for you? Please update your question if you have more information that can help us close this out.
    – philwinkle
    Sep 6 '13 at 19:21
  • I still have no idea how to accomplish this.
    – Webninja
    Sep 7 '13 at 4:39

I found an extension that fixes this issue. Seems to work also with 1.9.x editions when tested.



When you create the credit memo there is a field that allows the user to specify whether the item should be returned to stock:

enter image description here

In the case where more than one product was ordered it provides an input field that allows the admin to input the # of items from the credit memo that will be returned to stock.

  • 1
    You can set in the configuration if that checkbox is checked by default somewhere in System > Configuration > Inventory Configuration Aug 30 '13 at 14:42
  • 3
    What I meant was the stock availability setting in product's inventory tab that has options of "in stock" and "out of stock". Is that possible to be set to "in stock" somehow automatically after it has been automatically set to "out of stock" when product has been sold out? If you then create a credit memo, you have to manually find the product and set that setting "in stock".
    – Webninja
    Aug 30 '13 at 20:38

By default this isn't possible, Magento can only automatically change the product to out of stock. With some modification to the _beforeSave function in Mage_CatalogInventory_Model_Stock_Item (overwrite the class with your own) it can.


The same issue in Magento 2.4.3, does anyone have a solution?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.