Support

Home Forums Event Espresso Premium WP User Capability required for purchasing this ticket

WP User Capability required for purchasing this ticket

Posted: September 7, 2017 at 11:36 pm

Viewing 10 reply threads


solwebsolutions

September 7, 2017 at 11:36 pm

We have 6 levels of membership/sponsorship:
1. Friend
2. Partner
3. Supporter
4. Bronze
5. Silver
6. Gold

I have a class in December (3 different times on Xmas eve), building ginger bread houses.

1,2,3 member levels get $5 off.
Bronze, Silver and Gold members…a member level 4 or higher…get in free.

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”.
It is more of an == comparison rather than a >= comparison for membership levels…correct? Please advise if there’s an easier way to go about this rather than present site users with 18 ticket options they have to sift through.


Tony

  • Support Staff

September 8, 2017 at 2:45 am

I’ll answer this question first as it applies throughout the setup.

It is more of an == comparison rather than a >= comparison for membership levels…correct?

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?

1,2,3 member levels get $5 off.
Bronze, Silver and Gold members…a member level 4 or higher…get in free.

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.


solwebsolutions

September 8, 2017 at 8:11 am

Hi, we are using S2 Members plugin.
Where do we set stack capability?

That’s exactly what we want.


Tony

  • Support Staff

September 8, 2017 at 8:29 am

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.


solwebsolutions

September 8, 2017 at 8:56 am

Our Gold members don’t get access…that is the issue.


Josh

  • Support Staff

September 8, 2017 at 9:18 am

May I ask can you verify the following:

1) The capability that’s set in the ticket editor is _____________.
2) The Gold member role has the following capabilities:
_________
_________
_________
_________
_________
_________
_________
_________


solwebsolutions

September 8, 2017 at 9:58 pm

Thanks Josh!
I do see this article/KB, and I want the incremental access for sure:
https://s2member.com/kb-article/s2member-rolescapabilities/

Where do I look to check/verify Gold member role? It should have full rights?
For one of my Bronze/Silver/Gold tickets, I have:
WP User Capability required for purchasing this ticket: s2member_level4


Tony

  • Support Staff

September 11, 2017 at 2:41 am

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.


solwebsolutions

September 11, 2017 at 7:47 am

Yes, we’re using S2 Membership, and 6 levels per S2 members documentation.
Please advise.


Josh

  • Support Staff

September 11, 2017 at 9:24 am

Hi solwebsolutions,

If you carefully review S2Member’s documentation, you’ll note that
s2member_level4 is a role. You really need to input a capability into the Ticket Capability Requirement field.

Some examples of capabilities include:
access_s2member_level0
access_s2member_level1
access_s2member_level2
access_s2member_level3
access_s2member_level4


solwebsolutions

September 11, 2017 at 10:08 pm

Thank you Josh.
That was it…using access_s2member_level4 instead of s2member_level4

Viewing 10 reply threads

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.

Event Espresso