[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate
[x] The issue still exists against the latest master branch of WooCommerce on Github
[x] I have attempted to find the simplest possible steps to reproduce the issue
[ ] I have included a failing test as a pull request (Optional)
Hi Claudio,
Please implement a simple Automatic Restocking/Inventory Checkbox for Simple and Variable Products in WooCommerce.
Real World Example:
You have in stock 100 red T-Shirts of size M. A customer buys 10 such T-Shirts which leads to a remaining stock of 90 such T-Shirts. So far so good. If the customer now either cancels the order or if you have to issue a refund the stock should automatically go back up to its original quantity level of 100 T-Shirts as soon as you click on Cancel Order or Issue Refund.
We’re surprised that this basic feature is not yet an integral part of WooCommerce considering the fact that in case of several thousand (or ten thousand!) simple and/or variable products it generates a ton of unnecessary work and costs! since all cancelled and refunded orders must currently be updated manually when it gets to any sort of stock/inventory corrections/updates.
Thanks,
Patrick
Expected/actual behavior
When I follow those steps, I see...
...No change in stock quantity
I was expecting to see...
...Change in stock quantity
Isolating the problem
[x] This bug happens with only WooCommerce plugin active
[x] This bug happens with a default WordPress theme active, or Storefront
[x] I can reproduce this bug consistently using the steps above
WordPress Environment
```
`
### WordPress Environment ###
WC Version: 3.1.1
Log Directory Writable: ✔
WP Version: 4.8
WP Multisite: –
WP Memory Limit: 1 GB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
### Server Environment ###
Server Info: Apache
PHP Version: 7.0.21
PHP Post Max Size: 50 MB
PHP Time Limit: 600
PHP Max Input Vars: 1000
cURL Version: 7.38.0
OpenSSL/1.0.2j
SUHOSIN Installed: –
Max Upload Size: 50 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔
### Database ###
WC Database Version: 3.1.1
WC Database Prefix: wp_
woocommerce_sessions: ✔
woocommerce_api_keys: ✔
woocommerce_attribute_taxonomies: ✔
woocommerce_downloadable_product_permissions: ✔
woocommerce_order_items: ✔
woocommerce_order_itemmeta: ✔
woocommerce_tax_rates: ✔
woocommerce_tax_rate_locations: ✔
woocommerce_shipping_zones: ✔
woocommerce_shipping_zone_locations: ✔
woocommerce_shipping_zone_methods: ✔
woocommerce_payment_tokens: ✔
woocommerce_payment_tokenmeta: ✔
### Security ###
Secure connection (HTTPS): ❌Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
Hide errors from visitors: ✔
### Active Plugins (40) ###
Query Monitor: by John Blackbourn – 2.13.4
Redux Framework: by Team Redux – 3.6.5
404 to 301: by Joel James – 2.3.3
Advanced Database Cleaner: by Younes JFR. – 2.0.0
WooCommerce Currency Switcher - Dynamic Pricing Integration: by Aelia – 1.0.1.170710
Duplicator: by Snap Creek – 1.2.16
GA Google Analytics: by Jeff Starr – 20170324
Improved Variable Product Attributes for WooCommerce: by Mihajlovic Nenad – 3.3.0
WPBakery Visual Composer: by Michael M - WPBakery.com – 5.2
Multilingual Tools: by OnTheGoSystems – 1.3.1
Nav Menu Roles: by Kathy Darling – 1.8.6
Smart Slider 3 Pro: by Nextend – 3.2.4
Ninja Forms: by The WP Ninjas – 3.1.6
reGenerate Thumbnails - advanced: by turcuciprian – 1.5.0
WPML Multilingual CMS: by OnTheGoSystems – 3.7.1
UpSolution Header Builder: by UpSolution – 2.0.2
Use Any Font: by Dinesh Karki – 4.7.3
Aelia Foundation Classes for WooCommerce: by Aelia – 1.8.9.170629
WooCommerce User Role Minimums: by Stephen Sherrard – 2.0.2.2
Woocommerce User Role Pricing: by Stephen Sherrard – 2.1.3.1
WooCommerce Wholesale Ordering: by Stephen Sherrard – 3.1.4.2
Aelia Currency Switcher for WooCommerce: by Aelia – 4.4.11.170405
WooCommerce Conditional Shipping and Payments: by SomewhereWarm – 1.2.7
WooCommerce Dynamic Pricing: by Lucas Stark – 3.0.9 – 3.0.12 is available
WooCommerce Stripe Gateway: by WooCommerce – 3.2.2
WooCommerce Gateways Country Limiter: by OnTheGoSystems – 1.4
WooCommerce Multilingual: by OnTheGoSystems – 4.2.0
WooCommerce PDF Catalog: by DB-Dzine – 1.3.3
WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.0.4
WooCommerce PDF Invoices & Packing Slips Professional: by Ewout Fernhout – 2.0.1
WooCommerce PDF Invoices & Packing Slips Premium Templates: by Ewout Fernhout – 2.4.0
WooCommerce: by Automattic – 3.1.1
WP Cerber: by Gregory – 4.9
WP-DBManager: by Lester 'GaMerZ' Chan – 2.79
WP Rocket: by WP Media – 2.10.6
WPML CMS Nav: by OnTheGoSystems – 1.4.20
WPML Media: by OnTheGoSystems – 2.2.0
WPML Sticky Links: by OnTheGoSystems – 1.4.1
WPML String Translation: by OnTheGoSystems – 2.5.4
WPML Translation Management: by OnTheGoSystems – 2.3.1
### Settings ###
API Enabled: ✔
Force SSL: –
Currency: CHF (CHF)
Currency Position: left_space
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)
Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
instock (instock)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)
### WC Pages ###
Shop base: #8 - /shop/
Cart: #9 - /cart/
Checkout: #6697 - /checkout/
My account: ❌ Page does not contain the shortcode.
### Theme ###
Name: Impreza Child
Version: 1.0
Author URL: http://us-themes.com/
Child Theme: ✔
Parent Theme Name: Impreza
Parent Theme Version: 4.6.2
Parent Theme Author URL: http://us-themes.com/
WooCommerce Support: ✔
### Templates ###
Overrides: Impreza-child/woocommerce/checkout/thankyou.php
`
```
Prerequisites
master
branch of WooCommerce on GithubHi Claudio,
Please implement a simple Automatic Restocking/Inventory Checkbox for Simple and Variable Products in WooCommerce.
Real World Example: You have in stock 100 red T-Shirts of size M. A customer buys 10 such T-Shirts which leads to a remaining stock of 90 such T-Shirts. So far so good. If the customer now either cancels the order or if you have to issue a refund the stock should automatically go back up to its original quantity level of 100 T-Shirts as soon as you click on Cancel Order or Issue Refund.
We’re surprised that this basic feature is not yet an integral part of WooCommerce considering the fact that in case of several thousand (or ten thousand!) simple and/or variable products it generates a ton of unnecessary work and costs! since all cancelled and refunded orders must currently be updated manually when it gets to any sort of stock/inventory corrections/updates.
Thanks, Patrick
Expected/actual behavior
When I follow those steps, I see... ...No change in stock quantity
I was expecting to see... ...Change in stock quantity
Isolating the problem
WordPress Environment