Can anyone help How to update product stock quantity when placing an order in Magento 2 programmatically? I am new to Magento.
Can anyone help How to update product stock quantity when placing an order in Magento 2 programmatically? I am new to Magento.
Hi @5d970acbb8c78
I didn't get your question properly.
Magento already managed qty deduction after place order by default.
No, I want to update the ordered product stock with some custom quantity.
i'm working on the send the mail after restocked send notification to requested customer, i'm trying to get the previous product status i.e., Outofstock(0) and after saving the product status will check in if condition(0!=1).
Enable the Manage Stock option to control and keep track of the number of items currently in stock. Select the way you'd like to manage Backorders. Enter the Maximum Qty Allowed in Shopping Cart to determine the number of products per one order.