Add items to an existing WooCommerce order after checkout opposite creating a default new order
I need to change the normal behavior of the place_order button at checkout: if there's already an order which is not completed (status = processing), WooCommerce should add items to that order instead of creating a new one. Otherwise, it…