When you're testing a product that manages stock you will notice the stock levels are reduced each time you run tests.
If you want to tell Robot Ninja not to reduce stock there's a few options you can choose from:
- Tell Robot Ninja to test a different product in your store that doesn't manage stock or create a new hidden product for testing purposes (link to documentation).
- Update your
wp-config.phpfile to include the following code snippet below. Defining this constant in your
wp-config.phpwill tell WooCommerce to not reduce stock on Robot Ninja test orders only - any other order is not effected.
define( 'RN_REDUCE_STOCK', false );
Keep in mind that you must be running at least version 1.6.0 of the Robot Ninja Helper plugin in order to make use of the constant above.
If you need assistance adding this line of code to your
wp-config.php file, the Editing wp-config.php article on the WordPress Codex is a good place to find help, or if you have any other questions/issues, don't hesitate to contact us.