Posted: September 7, 2017 at 11:36 pm
We have 6 levels of membership/sponsorship: I have a class in December (3 different times on Xmas eve), building ginger bread houses. 1,2,3 member levels get $5 off. What it is looking like is I have to create 18 tickets (3 time sessions x 6 member levels). The “WP User Capability required for purchasing this ticket” doesn’t say “if you’re 4 or higher…you get in free”. |
|
I’ll answer this question first as it applies throughout the setup.
By default you can’t do a >= capability check, the user account either has the capability that is set on the ticket on their account/role or it doesn’t. The membership plugin you are using may provide levels, and also provide functions for >= comparisons based on the capabilities but it will be specific to how that plugins memberships are set up. Which membership plugin are you using?
If your membership levels ‘stack’ capabilities then you could use 2 sets of tickets, one set for level_1, 2, 3 and 1 set for Level_4, 5, 6. When I say stacked capabilities, some membership plugins add capabilities to the levels whilst also giving the ‘lower’ level capbilites to the high level. So for example a ‘Level 1’ member may have the capability level_1. A ‘Level 2’ member may have level_1, level_2 capabilites Level 3 = level_1, level_2, level_3 Meaning a ticket with level_1 as the min capability would work for all of those levels (as they all have that capability) For the ‘free’ tickets you assign the capability to the ‘lowest’ level capability that is assigned to all of the ‘higher’ levels, for example level_4 may apply memberships levels 4,5,6. S2_Member works similar to the above and I’ve based my reply on that but it really does depend what you are using if this will work. |
|
Hi, we are using S2 Members plugin. That’s exactly what we want. |
|
I’m sorry but not I’m sure what you mean? The levels are setup like above by default with S2 and you set the capability you want to use on the ticket within each ticket’s options. Actually, something you are going to find with the above setup is Gold members will have access to bother the paid tickets and the free tickets as they will also have the ‘lower’ cap that level 1,2 and 3 have. To prevent that you would need your own custom cap on each of the roles that you can use identify the 2 groups. |
|
Our Gold members don’t get access…that is the issue. |
|
May I ask can you verify the following: 1) The capability that’s set in the ticket editor is _____________. |
|
Thanks Josh! Where do I look to check/verify Gold member role? It should have full rights? |
|
What is a Gold member in regards to S2? You can use a plugin to view the capabilities on the role/user, but before you start changing capabilities (which may cause problems with S2 depending on what you change) confirm your using membership levels setup within S2. |
|
Yes, we’re using S2 Membership, and 6 levels per S2 members documentation. |
|
Hi solwebsolutions, If you carefully review S2Member’s documentation, you’ll note that Some examples of capabilities include: |
|
September 11, 2017 at 10:08 pm Thank you Josh. |
|
The support post ‘WP User Capability required for purchasing this ticket’ 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.