Support

Home Forums Event Espresso Premium Admin only bookable slots

Admin only bookable slots

Posted: July 19, 2017 at 2:45 am

Viewing 7 reply threads


Bosworthsgc

July 19, 2017 at 2:45 am

Hi

Following on from this thread
https://eventespresso.com/topic/public-private-booking-slots/

This was working fine

When logged in you could see the admin bookable tickets andif you were viewing as a customer you wouldnt see them (both on front end)

Now this has stopped working and you can see the admin tickets both when you are logged in or as a customer

I have checked and have the code snippet in place

Can you help please

Thanks


Tony

  • Support Staff

July 19, 2017 at 3:43 am

Hi Jonathan,

That explains why you were using the EE4 WP User Integration add-on from your previous thread:

https://eventespresso.com/topic/adding-an-registration-changes-my-user-profile/

That snippet works along with the add-on which has now been disabled.

Enable the add-on again and to prevent registrations from updating your user profile go to:

Event Espresso -> Registration Form -> User Integration Settings -> Always sync contact information with WP user profile?

Make sure that is set to No.

When you register onto an event using registration details that do NOT match your user profile they will not be linked to your user/contact.


Bosworthsgc

July 19, 2017 at 4:28 am

I had accidentally de activated the Admin only plugin – seems to work now I have reactivated it – do you think i still need the WP User plugin to make it work correctly?

Thanks


Tony

  • Support Staff

July 19, 2017 at 4:33 am

Sorry, I’m confused as to which plugin you are using.

In this thread: https://eventespresso.com/topic/public-private-booking-slots/

I recommended trying to EE4-AdminOnlyTicket plugin from another developer which wasn’t suitable for your use case but it sounds like the one you have now activated?


Bosworthsgc

July 19, 2017 at 4:39 am

Thats the one I have re-activated and it seems to be working now.

Think I have confused myself too !!


Bosworthsgc

July 19, 2017 at 5:58 am

I am still having some issues

I am using the admin only plugin – this shows registrations in the back end open to admins, but does not show them on the front end

I am trying to get it so that a logged in till operator can see the admin only tickets on the front end so they can then use the online payment processors to make a booking

With the WP User plugin enabled, should I be putting anything in the

Ticket Capability Requirement
WP User Capability required for purchasing this ticket:

Wasnt sure, as I would have to do this on every tickets and timeslot

Thanks and sorry for confusion


Josh

  • Support Staff

July 20, 2017 at 10:43 am

Hi Jonathan,

The admin only plugin is actually designed to only show the admin only tickets on the back end. It’s not supposed to show them on the front end.

I wouldn’t recommend using the WP User Integration to make admin only bookable slots because the admin will be logged in and any tickets they add on the front end will be attached to their user account. I’m going to assume that you want the tickets to be related to each individual attendee.

What you can do instead is make a tweak to the admin only tickets plugin so that it shows the ticket on the front end if the current logged in user has an EE admin capability. So for example on line 36 of ee admin ticket plugin it has this:

if (!$admin_only) {

you can change that line to be:

if (!$admin_only || current_user_can('ee_read_registrations')) {

What that will do is change the plugin show it shows the non-admin tickets on the front end, and also shows the admin only tickets on the front end if the logged in user has the ee_read_registrations capability.


Bosworthsgc

July 21, 2017 at 2:24 am

Thanks Josh

This is perfect – exactly what I needed it to do

Thanks again

Viewing 7 reply threads

The support post ‘Admin only bookable 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