Can anyone help How to update product stock quantity when placing an order in Magento 2 programmatically? I am new to Magento.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2020
02:32 AM
02-13-2020
02:32 AM
How to update product stock quantity when placing order in magento 2?
Labels:
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2020
03:26 AM
02-13-2020
03:26 AM
Re: How to update product stock quantity when placing order in magento 2?
Hi @5d970acbb8c78
I didn't get your question properly.
Magento already managed qty deduction after place order by default.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2020
03:38 AM
02-13-2020
03:38 AM
Re: How to update product stock quantity when placing order in magento 2?
No, I want to update the ordered product stock with some custom quantity.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2021
11:35 PM
06-29-2021
11:35 PM
How to get previous stockstatus and after update and saving need to get the status magento 2?
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).
How to get Previous stock status ??
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2021
03:01 AM
06-30-2021
03:01 AM
Re: How to update product stock quantity when placing order in magento 2?
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.