Woocommerce PHP script needed!

Job ID: 31431398

Budget: €8 – €30 EUR

Build a script for Woocommerce that does the following:

On checkout check if customer has an order in status "processing", if so the order needs be changed to status "on-hold". If no open order in status "processing" then normal behavoir.

Script needs to be build with the internal woocommerce classes.
Related categories: PHP WordPress HTML WooCommerce Frontend Development