Posted: March 20, 2023 at 12:50 am
|
I cannot for the life of me get the memebers only ticket to show for member. I placed the user role to subscriber and “read” in the ticket for members. What am I missing? |
Hi there, What happens with the ticket when you set the capability? Can you link me to the event so I can take a look? |
|
|
It says this ticket is available to members only. |
|
The issue has seemed to be resolved. Now I am just wondering if I wanted to hide the guest tickets for logged in members how can I achieve this. Obviously if someone is a member and can register for the member ticket it doesn’t make much sense to show the user the other options. |
If that just seemed to fix itself, then you likely have caching either on the site/server and the ticket selector is being served from the cache. You might want to exclude the EE pages with the ticket selector shown to prevent further issues.
Well no that’s not always the case which is why they show as they do currently but we do have a filter you can use to remove them. So when a member is logged in, will they always have access to a different ticket than the ‘public’ tickets, on all of your events? Meaning logged-in users should always only be shown a ticket which has a capability set on it? With that set up is possible for logged-in member show don’t have access to the membership tickets to not be shown any tickets so I’m checking to confirm first. |
|
|
Yes. I am basically showing 2 different tickets. One for members with a discount and one for regular guests. If the member is logged in they should only be shown the member priced ticket. I hope this makes sense. |
This snippet should do what you are requesting: https://gist.github.com/Pebblo/16a7dabb6a6d8f0f3d4370ccda06098b#file-functions2-php You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ Note that the snippet will continue to show all tickets for admin users and within the admin registrations. |
|
The support post ‘Wp Integration and member only ticketing’ 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.