Auto Send Tickets and Auto Send

Home Forums Ticket Products Event Tickets Plus Auto Send Tickets and Auto Send

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1071713
    Craig
    Participant

    WooCommerce Tickets..
    This ticket is an extension of and unanswered ticket at…

    Order never automatically completes always processing & more


    We want to auto send tickets and auto send the order complete emails without having to manually send them.

    I want to autosend the tickets and autosend the order complete email.

    #1071744
    Craig
    Participant

    I found the answer…
    I added…

    /**
    * Auto Complete all WooCommerce orders.
    */
    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’ );
    }

    to the bottom of my theme’s functions.php file.. found at..
    C:\HardDrive\Robert King\ALU\aluownership_website\wp-content\themes\Avada\functions.php
    and it auto completed the order..
    and then as a result auto sent the tickets.

    Thanks,

    Great plugin!!

    #1071760
    Brian
    Member

    I am glad to see you were able to figure it out.

    I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Auto Send Tickets and Auto Send’ is closed to new replies.