Getting Started!

Home Forums Ticket Products Event Tickets Plus Getting Started!

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #1172675
    Murray
    Participant

    George –

    Regarding the add_action() function for the QR code, could I also just add a corresponding remove_action() line to my functions file?

    I am using a PayPal Express Checkout gateway for the site, along with Guest checkout enabled.

    Regarding the order completion, I found this snippet –
    https://docs.woocommerce.com/document/automatically-complete-orders/
    and added it to my functions file. It works!

    So, things now seem to be working OK, so I really appreciate your comprehensive help with my issues. Let me also say that your idea of adding a promotional 100% off coupon is simply brilliant. I was wondering how to test things once I take them live!

    Thanks again.

    #1173005
    George
    Participant

    Glad to help, Murray! I appreciate the kind words. 😀

    When it comes to using remove_action, yes you could use this to remove the QR Codes from emails. A snippet like this should do the job:


    if ( class_exists( 'Tribe__Tickets_Plus__QR' ) ) {

    add_action( 'init', 'tribe_remove_qr_codes_from_ticket_emails' );

    function tribe_tickets_ticket_email_ticket_bottom() {
    remove_action( 'tribe_tickets_ticket_email_ticket_bottom', array( 'Tribe__Tickets_Plus__QR', 'inject_qr' ) );
    }
    }

    Cheers,
    George

Viewing 2 posts - 16 through 17 (of 17 total)
  • The topic ‘Getting Started!’ is closed to new replies.