Tribe/RSVP.php Function

Home Forums Ticket Products Event Tickets Plus Tribe/RSVP.php Function

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1129192
    Guillaume
    Participant

    Hi there,

    Is it possible to use the checkin Tribe/RSVP.php function as a “ticket confirmation” and sending an email to the attendee with his confirmation ? And if is it, how can I implement it ?

    Thanks for the answer πŸ™‚

    #1129521
    Nico
    Member

    Hi Guillaume,

    Thanks for reaching out to us! I’ll help you here…

    Let me start by saying I’m not 100% sure of what you are looking for. Event Tickets (which I see you have installed) allows you to add RSVP ticket to events, take a look to the video in the product’s page to know how it works.

    Sorry if you are already aware of how it works, if that’s the case please to elaborate a bit more on what you are looking for.

    Best,
    Nico

    #1129714
    Guillaume
    Participant

    Hello Nico,

    First of all thanks for the reply. I’ll try to be more specific here then.

    My question actually concerns attendees checkin. In fact, I would like to make the “checkin” action on my php code to call this action by API. I have tried to do this like that :
    public function checkinEventAction($idAttendee)
    {
    Tribe__Tickets__RSVP::checkin($idAttendee);
    return $this->redirect($this->generateUrl(‘front_admin_event’));
    }

    But nothing happens with this call. How can I do that ?

    Thanks for the support πŸ™‚

    Guillaume

    #1130514
    Nico
    Member

    Thanks for following up Guillaume!

    I think the issue here is that you are not getting the instance of the class, try the following:


    public function checkinEventAction($idAttendee)
    {
    $rsvp = Tribe__Tickets__RSVP::get_instance();
    $rsvp->checkin( $idAttendee );
    return $this->redirect( $this->generateUrl( 'front_admin_event' ) );
    }

    Does this works as expected?

    Best,
    Nico

    #1135407
    Guillaume
    Participant

    This reply is private.

    #1135777
    Nico
    Member

    Glad to be of service Guillaume, no worries for the late confirmation πŸ˜‰

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Tribe/RSVP.php Function’ is closed to new replies.