Hi again!
At the moment I´m solving it by adding a snippet to change order status, this is the code:
add_action( ‘woocommerce_thankyou’, ‘custom_woocommerce_auto_complete_order’ );
function custom_woocommerce_auto_complete_order( $order_id ) {
if ( ! $order_id ) {
return;
}
$order = wc_get_order( $order_id );
$order->update_status( ‘completed’ );
}
It works, but the orders goes through 3 stautus: From Pending to Completed to Processing and finally to Completed again, as result, customer recieves the order email confirmation twice… Anyone whit the same problem?
Thanks!!
Hi,
It works, but the orders goes through 3 stautus: From Pending to Completed to Processing and finally to Completed again, as result, customer recieves the order email confirmation twice
– Well, this order status transition coontrol by WC core and customer emails also triggered from WC, WCFM or WCFM Marketplace does not send out any email to customer for such purpose.
But, it’s quite obvious, as two status transition happening so two email will be generated.
Thank You
Hi!
I after some more testing (deactivating all snippets and all the plugins in my site and activating them one by one)
I´ve noticed that woocommerce status control works fine, the problem is with WCFM Marketplace.
The order is automatically completed by woplugin, but if I activate wcfm marketplatece, the orders go from completed to Processing.
Any sugestions?
Hi,
Which payment gateway you are using for make payment for the order?
Thank You