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
    Commented Sep 6, 2013 at 19:21
  • I still have no idea how to accomplish this.
    – Webninja
    Commented Sep 7, 2013 at 4:39

4 Answers 4


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 Commented Aug 30, 2013 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
    Commented Aug 30, 2013 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?

  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From Review
    – sv3n
    Commented Oct 21, 2021 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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