'How to trigger a Woocommerce Subscription renewal order for testing

Client orders on our site for membership subscriptions need to be manually completed because they are not both virtual and downloadable. I was able to force those types on initial orders, but not on subsequent subscription renewals. I tried this code in the answer suggested here: WooCommerce Subscriptions - Automatically complete renewal orders and Subscription status, but it is not working. I need a good way to trigger a renewal to test this code instead of waiting 24 hours! 🤣

How do I trigger a subscription order renewal with code for easier testing? And a bonus if you have any idea why the code linked might not be working. Thanks everyone!



Solution 1:[1]

I cannot reproduce your issue:

enter image description here

If slaves don't report sample results to master then there is something wrong with your RMI configuration

  • JMeter master needs to be able to connect to slaves in order to transfer the test plan and start the test
  • JMeter slaves need to be able to connect to the master in order to send the results back

Check jmeter.log on master and jmeter-server.log files on slaves for any suspicious entries and amend your RMI configuration to allow bidirectional connectivity. You may need to open ports in your OS firewall

More information:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T