I don’t mean when only a user with a specific capapbility can see a specific ticket-type; I know how to do that. I have a single event with three ticket-types, A, B, and C. I want users who buy ticket-type A to be given user capability A post-purchase; those who buy ticket B to have capability B applied, and so forth.
I found a snippet (HERE) that does almost what I want but in that snippet the capability is applied when a person buys any ticket from a specific event. I tried changing EVT_ID to TKT_ID with the correct ticket id number, but that didn’t work. Any guidance you can give me would be greatly appreciated.
If I change the TKT_ID to match the ID of the ticket I’m registering onto and then register onto that ticket, I get the ‘foo’ capability added to my account.
I made a couple of changes just to make it a little easier to read and dump th values out so I could confirm it worked but this is what I used:
Great! Then maybe it’s a plugin conflict or something, but knowing the code should work as I expect is a huge help. Thank you so much. I’ll let you know if I can’t it going.
Viewing 6 reply threads
The support post ‘Apply different capabilities to buyers of different tickets to same event?’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.