Difficulty with auto completion of orders
-
Hi.
I’m using a function to autocomplete orders once a user hits the thank you page for an order i.e. when they’re redirected back from PayPal having made a payment.
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' ); function custom_woocommerce_auto_complete_order( $order_id ) { global $woocommerce; if ( !$order_id ) return; $order = new WC_Order( $order_id ); $order->update_status( 'completed' ); }
This works great for individual products. However, when a user buys a bundle, only the first product in the bundle shows up for them as being purchased. Any ideas why this might be?
Thanks!
https://www.ads-software.com/plugins/yith-woocommerce-product-bundles/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Difficulty with auto completion of orders’ is closed to new replies.