Support

Home Forums Event Espresso Premium Public / Private booking slots

Public / Private booking slots

Posted: May 22, 2017 at 5:15 am


Bosworthsgc

May 22, 2017 at 5:15 am

Hi

I have a scenario I am trying to set up for our Santa’s Grotto for this year

We have slots of half an hour

Within each of these slots we sell 8 child tickets to see santa that can be booked by the public

We also have a further 2 tickets that are available should anyone want to book in on the day.

Is there a way to make these two tickets only available to be booked by staff members and not have this available on the main website for the public to see

Thanks
Jonathan


Tony

  • Support Staff

May 22, 2017 at 6:08 am

Hi Jonathan,

Whilst we do not have the option to create ‘admin only’ tickets, another user has previously shared their solution for this which may work for what you need:

https://github.com/chasecmiller/EE4-AdminOnlyTicket

You need to create an additional ticket and publish the event, then re-edit the ticket and you should find an option to make that ticket admin only.

(Note we do not provide support for this plugin it was share via another user and so is not our code)


Bosworthsgc

May 23, 2017 at 4:54 am

Thanks Tony

I have a site specific plugin – are you able to advise if I simply drop the code into this?

Thanks


Tony

  • Support Staff

May 23, 2017 at 5:01 am

The code in that repo is setup as a plugin, so you can download the zip and install it as a normal plugin – http://take.ms/bg8Px

You can pull the code from repo and put it into the custom functions plugin if you want, but as it’s currently set up as a plugin you may as well use it directly.

Make sure you have FTP access to the site before installing plugins in-case you need to disable the plugin from a whitescreen.


Bosworthsgc

May 23, 2017 at 5:05 am

Thats great – thank you


Bosworthsgc

May 23, 2017 at 7:33 am

Hi Tony

This plugin will only allow for those tickets to be shown in the backend
This may cause us confusion if for example we show 10 tickets available in the particular time slot, eight are sold and it doesnt show sold out

I have just tried using the WP Users plugin from yourselves

This would show the front end how we would want except for the wording

Is it at all possible to change the wording that is shown on this line please

For example where it says is available to members only I would like to change it to “Unlocked by admin on event day” and remove the leading “The ” at the front

I cant see where to do this, but if you can advise that would be great

Thanks


Tony

  • Support Staff

May 23, 2017 at 10:39 am

Ah my apologies, I though you wanted tickets that only loaded within the admin.

You can change the above text with a translation function, or you can also hide the ticket completely if they don’t have access to it (are not an admin), would that work better?


Bosworthsgc

May 24, 2017 at 2:13 am

Hi Tony

The latter may work well. The only issue being on the total tickets available

For example – If I have half hour slots throughout the day, 8 tickets per slot, so I make up 88 available tickets
Within each half hour slot we would then have 2 available that are only bookable by admin – front end

Do I add these to the total tickets or make another date / time for admin?

Hope that makes sense

Thanks


Bosworthsgc

May 24, 2017 at 4:45 am

I have set an example here https://bosworthsgc.co.uk/events/santas-grotto

What I am trying to do is hide the admin tickets altogether unless a staff member is logged in

Is this possible?


Bosworthsgc

May 24, 2017 at 5:10 am

I have tried the WP users and the Admin only plugin

Admin only plugin is good and does what I would need to hide the tickets front end but would be a more complicated process for a till operator on the day

Ideally I would like to use WP Users but not have the ticket show to non logged in user on the front end – I am not sure if this is possible?

Thanks


Tony

  • Support Staff

May 24, 2017 at 5:19 am

This snippet should do what you’re looking for:

https://gist.github.com/Pebblo/106393acd850cb83c3798c66a9c5a19a

If the user doesn’t have access to a ticket then the ticket will not show on the ticket selector at all, the above can go in your custom functions plugin.

The support post ‘Public / Private booking slots’ 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