Someone purcahses the course but woo is stuck in "waiting for admin approval"

Home Forums Legacy Support Support queries How-to & Troubleshooting Someone purcahses the course but woo is stuck in "waiting for admin approval"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #239231
    Nick
    Participant
    I have the same issue outlined in this thread: https://wplms.io/support/forums/topic/woocommerce-waiting-for-admin-approval/ BUT: that plugin is no longer available. What is the best way to solve this issue so that the admin does not need to manually approve students? Thanks :) Niki
    #239243
    logan
    Member
    Hello, please add this code in the wplms customizer plugin >> customizer.php /**
    • Auto Complete all WooCommerce orders.
    */ add_action( 'woocommerce_thankyou', 'logan_woocommerce_auto_complete_order' ); function logan_woocommerce_auto_complete_order( $order_id ) { if ( ! $order_id ) { return; } $order = wc_get_order( $order_id ); $order->update_status( 'completed' ); } this will do what you desire.
    you could use 3rd party plugins like: https://wordpress.org/plugins/autocomplete-woocommerce-orders/ this is used for the auto comeplete the woocommerce order.
    #240018
    Nick
    Participant
    thank you, that worked :)
    #240031
    logan
    Member
    best regards my friend. topic closed.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Someone purcahses the course but woo is stuck in "waiting for admin approval"’ is closed to new replies.