Craig

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Auto Send Tickets and Auto Send #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!!

    in reply to: Moving Ticket Form From the Sidebar to the Content #1071622
    Craig
    Participant

    I fig’d out the answer.. by searching similar terms from above in my code..

    Here’s the answer:
    in file..
    wp-content\plugins\the-events-calendar\vendor\tickets\src\Tribe\Tickets.php

    there is a line.. that says.. (line 273)
    add_action( ‘tribe_events_single_event_after_the_meta’, array( $this, ‘front_end_tickets_form’ ), 5 );

    change this to
    add_action( ‘tribe_events_single_event_after_the_content’, array( $this, ‘front_end_tickets_form’ ), 5 );

    and it will show below content in the main content area of the single event page, and will disappear from the sidebar.

    Thanks guys..
    Great plugin.

Viewing 2 posts - 1 through 2 (of 2 total)