Support

Home Forums Event Espresso Premium Guest role ?

Guest role ?

Posted: November 5, 2016 at 10:51 am

Viewing 6 reply threads


FulgenceSMG

November 5, 2016 at 10:51 am

Hi

For every conference we sell there are many types of tickets (more than 10)
We offer tickets for non registred users and for registred ones.

We use role capabilities to hide to the public the tickets limited to registred users. But we would like also to hide to registred members (logged in), tickets for non registred users… Is there a role name to enter for non logged in users?

Thanks


Josh

  • Support Staff

November 8, 2016 at 1:05 pm

Hi there,

No there isn’t a role name to enter for non-logged in users.


FulgenceSMG

November 11, 2016 at 5:05 am

I have 6 tickets per event for non logged in members
And 8 tickets for logged in members per role (4 roles)

Screenshot of the tickets

When user is not logged in as you can see he can see also the tickets for members
It would be nice if those tickets would be hidden..

But the worst problem is when user is logged in.
Because he still see the tickets for non logged-in users… and it’s really a mess
How to avoid that?


Tony

  • Support Staff

November 11, 2016 at 2:03 pm

It would be nice if those tickets would be hidden..

For that you can use this function:

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

Because he still see the tickets for non logged-in users… and it’s really a mess

The minimum capability feature on tickets allows you to set a capability on the ticket that the user must have in order for them to see that ticket. No minimum capability means that any user can view those tickets, so logged in users should see them.

The output for each ticket row is filterable so a developer could add some this functionality for you using the hook FHEE__ticket_selector_chart_template__do_ticket_inside_row. Basically check if a capability has been set on the ticket and then if not and the user is logged in, return a blank string.

If you are not currently working with a developer we have a list of some that are familiar with Event Espresso here:

https://eventespresso.com/developers/event-espresso-pros/


FulgenceSMG

November 12, 2016 at 1:50 pm

Ok thanks for this function! much better!
I don’t have time and budget for developper right now because we need to go online in a few days.

Last question :
Because all the tickets for non-logged-in users are still there when we are logged-in, could it be possible at least to separate them from the tickets for members ?

Let’s say, maybe with different background color and more space between those thickets and the others ? because actually all the tickets are really together

Thanks a lot for your help


FulgenceSMG

November 14, 2016 at 5:03 am

Here is the picture

The 6 first tickets are tickets for non logged in members…i would like to be able to give them a different background color/text color

And also to know how to give another color to the tickets for the logged in users

thanks


Josh

  • Support Staff

November 15, 2016 at 7:50 am

Each ticket row has its own html/CSS classes so you can use those to uniquely style each row. Are you familiar with how to use Firebug to inspect HTML in order to get an element’s class?

Viewing 6 reply threads

The support post ‘Guest role ?’ 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