Support

Home Forums Event Espresso Premium Primary booker can only be attendee 1

Primary booker can only be attendee 1

Posted: March 22, 2016 at 10:51 am


pixeltron

March 22, 2016 at 10:51 am

Hi Guys

Just a quick question , with regards to the booking ,

Q: You cant change the ticket the primary attendee is on?

For example: primary booker can only be attendee 1 but they may want to be on a different ticket, if multiple tickets are enabled, is there something in the admin to get around this or could you point us in the right direction like a hook to change the way this works.

Thanks Josh


Lorenzo Orlando Caum

  • Support Staff

March 22, 2016 at 2:24 pm

Hello,

The primary registrant/attendee is currently considered to be the first person to register for an event and this can’t be changed at this time.

If you are needing a different name and email per ticket (pricing) option, then that can be turned on by enabling the personal question group for additional registrants/attendees.

That appears in the bottom right area of the event editor.


Lorenzo


pixeltron

March 29, 2016 at 7:28 am

Hi Lorenzo, thanks for responding.

Here’s our problem;

We’re using the WP User Integration module, and we’ve created a stand-alone registration process. The problem with the primary registrant is that you have little to almost no control over what ticket is assigned to the primary registrant. You can do it statically, but the user has no control.

Say we have the following tickets;

– All-inclusive
– Member Type A
– Member Type B

We want the primary registrant to be able to choose with ticket they’re assigned. The one place I think this may be possible is in the ticket_selector module, EED_Ticket_Selector.module.php on line 317:

$ticket_query_args = array(
			array( 'Datetime.EVT_ID' => self::$_event->ID() ),
			'order_by' => array( 'TKT_order' => 'ASC', 'TKT_required' => 'DESC', 'TKT_start_date' => 'ASC', 'TKT_end_date' => 'ASC' , 'Datetime.DTT_EVT_start' => 'DESC' )
		);

If there was a filter hook here to modify the query, is it feasible we could create a custom form dropdown on the ticket selection page to alter which ticket is first on the next page? I believe We can do all that with jQuery, provided we can create the form, and alter the order of the tickets.


pixeltron

March 29, 2016 at 7:31 am

In regards to the above, could we use
ticket_selector_form_open() to include our custom form dropdown input? It does have a filter hook to modify the html data;


Josh

  • Support Staff

March 29, 2016 at 3:32 pm

You should be able to use the
FHEE__EE_Ticket_Selector__ticket_selector_form_open__html
hook there to add a new input. You’ll need to make sure the standard inputs aren’t removed.


pixeltron

March 30, 2016 at 3:26 am

Thanks for the reply.

Is it possible somebody could get back to me on the issue above in regards to the other post I made? We still need a way of changing the ticket ordering once the tickets have been selected, but there’s no filter hook to alter the db query in EED_Ticket_Selector.module.php after line 317. If there was a filter hook to that array, we might be able to alter the ticket ordering.

Many thanks.


Josh

  • Support Staff

March 30, 2016 at 7:47 am

You’re invited to add a filter and submit a pull request on our github repository:

https://github.com/eventespresso/event-espresso-core/


pixeltron

March 31, 2016 at 6:10 am

That’s great, thanks. I’ll look into doing that.

The support post ‘Primary booker can only be attendee 1’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso