Support

Home Forums Event Espresso Premium Member Only Tickets

Member Only Tickets

Posted: September 27, 2018 at 11:16 am

Viewing 2 reply threads


ICLE

September 27, 2018 at 11:16 am

https://eventespresso.com/topic/member-only-tickets-hide-from-generalpublic-view/

Has there been any change on hiding or showing tickets to specific “roles”?
I would like to sell sponsor opportunities to people who have the WP role of sponsor, admin and Event Planner but don’t wish to show these to other roles.

Case:
Sponsor Listing $100
Sponsor Table $2500
Brass Sponsor $200
Silver Sponsor $300
Gold Sponsor $500
Lanyard Sponsor $1200
etc.


Tony

  • Support Staff

September 27, 2018 at 1:54 pm

Hi there,

No change with the core plugin itself, but you can do what I think you are requesting using a snippet of code as the content is filtered.

For example for each ticket selector row you can check if the current user has the capability required to view the ticket and if not, just not return nothing so nothing is displayed. (This is pretty much what the WP User integration add-on does, only it displays a message if you can’t access the ticket, rather than nothing)

So to confirm I understand the above tickets would only be visible to users WP role of sponsor, admin and Event Planner and no-one else? I’m assuming there will also be other tickets in the event that would display for all?


ICLE

September 28, 2018 at 5:19 am

Yes. Only need to display tickets to selected roles. If there is a ticket, other roles need not see them because we are not exposing normal users to sponsor opportunities.

I used the snippet featured in “https://eventespresso.com/topic/member-only-tickets-hide-from-generalpublic-view/” in conjunction with the “Members” plugin but it the Admin page does not have the grid of roles that other roles get.

I did a work around and made another user an Administrator AND the custom role of Sponsor and he can see things as predicted. So that is the way one must do it.

This is solved. Kludgey but solved.

Viewing 2 reply threads

The support post ‘Member Only Tickets’ 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