Anyone has this, or a similar, autocomplete orders system?
Autocomplete WooCommerce Orders
Autocomplete your WooCommerce v2+/v3+ orders with ease.
wordpress.org
You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"
Still, AI will defeat us)Hahaha - It's funny. I've been looking for this kind of plugin just now that can automatically change the Order status from "On hold" to "Completed" when someone trying to complete from the cart to the checkout process.
Been searching in google, but it's not working, free plugins/snippets, but no luck. So I decided to ask ChatGPT. It provides me with a working one hahaha
Copy and paste it into your WordPress theme's functions.php file or in a custom plugin...
function auto_complete_orders_on_hold() {
$args = array(
'status' => 'on-hold',
'limit' => -1,
);
$orders = wc_get_orders( $args );
foreach ( $orders as $order ) {
$order->update_status( 'completed' );
}
}
add_action( 'woocommerce_thankyou', 'auto_complete_orders_on_hold' );
Important note:
I've been doing some tests in localhost, not on the live site.
We get it, advertisements are annoying!
However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.
If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.