I don't want to decrease stock qty when order is placed. I know this can be done in admin by setting decrease stock to NO. But I want to change the update stock logic, so I need to know where can I programmatically stop decreasing stock qty in code.

1 Answer 1


By programmatically, set an observer to retain the quantity after placing the order success. Refer this link to use observer Which observer to use after success order on Magento 2?



Refer this file, It has the functionality to decrease quantity.


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.