[Bug Report] Missing parameter in action tribe_tickets_ticket_email_bottom

Home Forums Ticket Products Event Tickets Plus [Bug Report] Missing parameter in action tribe_tickets_ticket_email_bottom

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1017796
    Marco
    Participant

    Hi,

    I just bought the WookTickets plugin a week ago so I am not really an expert on this, but I would like to report a possible bug.

    I was trying to add a custom text retrieved from WooCommerce order_id to the ticket email template and for this reason I hooked to the action

    tribe_tickets_ticket_email_bottom

    In the file the-events-calendar/src/views/email.php I think that is missing a parameter to the action.

    I changed this code

    do_action('tribe_tickets_ticket_email_bottom');

    in this way

    do_action('tribe_tickets_ticket_email_bottom',$tickets);

    and now I am able to retrieve the information that I need.

    #1017940
    George
    Participant

    Hey @Marco,

    Thanks for sharing this! While this is not a bug, it’s a useful thing regardless and we appreciate your input here. I’d personally recommend a Pull Request on The Events Calendar’s public GitHub repo here so that this becomes a part of our plugin code → https://github.com/moderntribe/the-events-calendar

    Otherwise, I have logged this idea and so it might end up in the plugin eventually anyways.

    Cheers!
    George

    #1018805
    Marco
    Participant

    Hi, sorry for the word bug, you are right it is an improvement I would like to suggest.
    I will try to create a Pull Request on the GitHub repo.

    Thank you
    Marco

    #1018957
    George
    Participant

    No worries @Marco! Thanks for taking the time to write us about this to begin with; we’ll keep our eyes open for your Pull Request 😀

    Cheers,
    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘[Bug Report] Missing parameter in action tribe_tickets_ticket_email_bottom’ is closed to new replies.