IMPORTANT: This code is made available in the hope that it will be useful, but without any warranty. See the GNU General Public License included with the code for more details. Automattic or WooCommerce support services are also not available to assist with the use of this code.
Using WooCommerce Subscriptions? Want to reduce stock for only the initial purchase of subscription products?
Install and activate this plugin.
By default, WooCommerce reduces stock for any order containing a product. This means stock will be reduced for both the initial purchase of a subscription product and all renewal orders. This extension stops stock being reduced for renewal orders.
Note: this plugin was originally made available via a Gist. It's been moved into this repository because of the discussion and popularity of that gist.
This plugin requires WooCommerce 2.4 or newer. It will work with any version of Subscriptions, even v1.5, but please update to Subscriptions 2.0 or newer. 🙏
To install:
- Download the latest version of the plugin here
- Go to Plugins > Add New > Upload administration screen on your WordPress site
- Select the ZIP file you just downloaded
- Click Install Now
- Click Activate
If you find an problem or would like to request this plugin be extended, please open a new Issue.