Home › Forums › Order Status Rules for WooCommerce › Server resources performance
- Support forum for the Order Status Rules for WooCommerce.
- This topic has 2 replies, 2 voices, and was last updated 4 months, 1 week ago by Tom Anbinder.
- November 2, 2022 at 2:49 pm #95348misho2007Participant
i have 2 questions about Order status Rules plugin:
1- my current setup is>>
all my products are virtual (digital codes) so all orders are completed to deliver the serial or code
i use this function.php code to change order status from processing to completed:
add_action( ‘woocommerce_order_status_processing’, ‘processing_to_completed’);
$order = new WC_Order($order_id);
and all is good, but now i have specific products that i don’t need it to be completed & stay processing
so if i removed the above code all orders will be processing & will use your plugin to change other processing to be completed.
is that the best solution?
because let’s say the products i need to stay processing are 3-5% of my orders but about 95% i need them completed so do you recommend this solution ? or you have better idea?
and if i use your plugin and make the interval to change order status to be 0 that means it will check all orders to change the status based on rule which means will give a heavy load on the server or it doesn’t work like that & will not affect the performance ?
2- do you have life time license ?
THxNovember 6, 2022 at 12:52 pm #95669misho2007Participant
ReminderNovember 9, 2022 at 1:23 am #98754Tom AnbinderModeratorPlugin Support
Sorry for the late reply.
> 1- … is that the best solution…
Short answer: yes, I believe our plugin is suitable for your task. And no, it won’t give a heavy load on the server.
Long answer: Our plugin has two different algorithms. One is used when the rule’s “Time trigger” option is set to “0”. In this case, we use the same action as in your snippet. And if you set the “Time trigger” to a value higher than zero, the plugin will use crons to periodically check orders. The cron interval is set in the plugin’s “Advanced > Periodical Processing Options” settings section, so if you’d need to minimize the server load, you would set it to, e.g., “Once weekly” (by default, it’s set to “Once hourly”). And in your case, you can probably disable the “Periodical Processing Options > Use WP cron” option altogether, as you don’t need to check orders periodically.
> 2- do you have life time license ?
Unfortunately no, we don’t offer lifetime licenses for this plugin.
I hope this helps. Please let me know if you have any questions.
- You must be logged in to reply to this topic.