Support

Home Forums Event Espresso Premium Extra tickets for primary registrants

Extra tickets for primary registrants

Posted: April 14, 2017 at 12:57 am

Viewing 12 reply threads


RolandK

April 14, 2017 at 12:57 am

Hello EE Support,

I hope you can help me with my issue using: EE4.9.31 / WP 4.7.3

I created a private free event. No payment gateway used.
Available tickets for this event:

• Adults
• Children

Max tickets Adults + Children = 8 including the Primary registrant

All subscribers are imported thru a CSV. About 900 people.
So every subscriber has the ability to register a max of 8 attendees

No one outside (unknown) can register to WP or even see the content of this site.

Our private subscribers must login to WP and register to the event.

When a Primary registrant has registerd and is redirected to the thank you page, I set a value in WP UserMeta table, hasTickets = true.

This because we want in base that a Primary registrant only makes one registration with a total of 8 attendees. So when hasTickets = true and they go again to the event page:
I’ll show them a text: “You have already registered!” and that’s it.

That is working fine but there are exceptions.
Some subscribers need some extra tickets.
In the WP User profile I can check of uncheck this value: hasTickets
When I uncheck hasTickets after this is auto checked because of a registration, they are allowed to go to the event page without the message “You have already registered!” and sign up 7 new attendees ( 8 including the primary registrant again ).

Now it comes:
• First including the Primary registrant again isn’t necessary because he/she has already a ticket for themself.
• Second is we want to give access to only that amount of tickets they want extra above the additional 8 they already have.

So if a Primary registrant only needs 3 extra tickets we do not want to give access to the default 8 again. Max of extra tickets for a primary registrant above the 8 are 12 tickets.

Is this possible to realize?

Hopefully I explained my situation well.

Thanks,
Roland


Josh

  • Support Staff

April 14, 2017 at 8:26 am

Hi Roland,

What you could do is create a new ticket type in the ticket editor and label it Extra Tickets. Then under Ticket Details you’ll set its Maximum Quantity to 3.

Then you’ll hide the Extra Tickets row for user accounts that don’t have the usermeta hasTickets = true by using the
FHEE__ticket_selector_chart_template__do_ticket_entire_row
filter hook. You’ll make a little function that checks the usermeta and if no usermeta hasTickets then you return an empty string. You might also want to run the reverse check so if they do have usermeta hasTickets, then return an empty string for the other ticket types.

Then at the point where they register for the extra tickets, you’ll probably want to add another usermeta field hasExtraTickets and add your extra logic accordingly.


RolandK

April 14, 2017 at 10:34 am

Hi Josh,

Thanks for quick reply.

This may work but I realize what you describe I have to make 12 extra tickets available. Meaning:

  • One with Quantity of 1
  • One with Quantity of 2
  • One with Quantity of 3
  • One with Quantity of 12

and depending on which subscriber needs one of these extra tickets options I have to point the right one to this specific subscriber. Is that correct?

Tried using the filter hook but all tickets rows are not showing now.
I think I miss something… maybe the knowledge using this hook…

Thanks,
Roland


RolandK

April 14, 2017 at 10:56 am

Hi Josh,

I was Looking further around in the ticket section.
Knowing that all our attendees are subscribers but maybe I can do something with Ticket Capability Requirement and this field:
WP User Capability required for purchasing this ticket

And showing these specific subscriber to the right extra tickets possibility.

What do you think?


Josh

  • Support Staff

April 14, 2017 at 11:40 am

Yeah if you go with the route of the ticket capability requirement, you’ll save yourself some development time. The ticket capability requirement feature actually uses that same filter hook I mentioned earlier. One thing to keep in mind though, when you add the capability to get extra tickets, you’ll also probably want to remove the capability that let them initially get tickets (so they can’t attempt to get 8 more tickets).

I think you’ll only need one ticket (not 12), because you’ll set its maximum field to 3. So the returning ticket buyer will be able to select a maximum quantity of 3 tickets.


RolandK

April 14, 2017 at 12:05 pm

Maybe I’m not clear Josh or doesn’t understand what you mean by only need one extra ticket with the max quantity of 3.

Let me explain. It’s a private event and people are know guests.
Some people that has already 8 tickets are calling us that they want more. So I need to give the option of 1 extra more, 2 extra more till 12 extra more tickets for one time only. After that possibility and they got the extra tickets the page is showing again: “You have already registered!”.

So one ticket with max field to 3 isn’t enough if they want for example 12 tickets.
It is not intended that they should do this 4 times to get the extra 12 tickets.


Josh

  • Support Staff

April 14, 2017 at 12:15 pm

Oh I see, so you we’re just using an example of what if they want 3 more earlier, but they could be requesting up to 12 more tickets.

What you could do then is create 12 different ticket types where the max and minimum goes from 1 to 12 for each ticket, and you’ll give them the capability to access only the ticket they’re approved for.


RolandK

April 14, 2017 at 12:30 pm

Yes that right Josh.

So you think I can use: WP User Capability required for purchasing this ticket

Is this option checking only the default roles and capabilities from WP or can I create 12 random meta keys for the extra ticket subcribers?


Josh

  • Support Staff

April 14, 2017 at 1:18 pm

You’d need 12 new unique WP capabilities for each of the 12 ticket options.


RolandK

April 20, 2017 at 4:04 am

Hi Josh,

With the 12 unique WP capabilities is working fine.

I created 12 unique roles (using Members plugin) with capabilities like extra_ticket_01 till extra_ticket_012 so I can select them in the User Profile.
I put these unique capabilities in each WP User Capability for those 12 extra tickets.

Couldn’t find so quick a possibility to select Capabilities in the User Profile.
But this is fine for now using the add_filter: FHEE__ticket_selector_chart_template__do_ticket_entire_row
So only the extra tickets option is showed with
$VIP_Ticket_ID = array( id, id, id, etc. etc);

What I noticed as I think you mentioned earlier is that the total max available is 8. So the extra tickets option from 9 to 12 is showing only 8 in the dropdown. The others are good. That sounds logic.

We close the logins by our self and when somebody need extra tickets we give only access to that specific subscriber(s).

Can I raise the total max. of tickets to 12 in the event so the dropdown from 9 till 12 is showing the right Quantity after closing the logins?

Is there something to keep in mind in this?

Thanks!
Roland


Josh

  • Support Staff

April 20, 2017 at 11:29 am

If you raise the total max of tickets to 12 for the event, you won’t have your limit of 8 anymore, it will be 12.


RolandK

April 21, 2017 at 12:52 am

Because we are manual closing the login for the subscribers, no one can login anymore. The event thereby is still active.

By selecting the extra ticket Role/Capability for some specific subscribers and activate there account again, they can login again for a extra ticket option (1…12).

Only the extra ticket option is showed here. All of those tickets has there own QTY set (1…12) as you indicated.

So do I understand this correct that changing from 8 to 12 limit for only those subscribers that need extra tickets and only those subscribers may login again, will not interfere the event further?


Josh

  • Support Staff

April 21, 2017 at 7:38 am

I think you’ll need to test this because I’m not clear about what your mechanism is for changing the limit for only those subscribers that need extra tickets.

Viewing 12 reply threads

The support post ‘Extra tickets for primary registrants’ 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