Home Forums Roles and Permissions Add-ons (EE3) Using S2 to set ticket levels

Using S2 to set ticket levels

Posted: May 20, 2014 at 12:36 pm


May 20, 2014 at 12:36 pm

Installed: WP User Integration v1.9.8.p and Event Espresso s2member addon v1.1.b
I have searched through the forums and documentation but I’m unable to find the process to setup levels for tickets. I need to setup member ticket price, nonmember ticket price, and a walkin ticket price. The first two are for online purchases.

Sidney Harrell

May 20, 2014 at 8:27 pm

Our S2 integration for EE3 is a new feature set laid on top of the existing members integration add-on. It is still restricted by the two allowable states, either they get the member’s discount or they don’t.
If you are doing walkins as in checking people at the door with a laptop logged into the site, the admin can add people in the backend at any price point, they are not restricted to one of the listed ticket types.


May 20, 2014 at 10:51 pm

Where does the level get set? If I have a nonmember who becomes a member how do I set his new level so he gets charged the correct ticket price?
90% of the people who are WalkIns register online but don’t pay until they get to the event. This helps us with preparations for the event. The other 10% have not registered or paid yet. We have been dealing with manual process for years and really wanted an automated solution. I know you are working towards that with have products like S2 but this member level and ticket price is important for us to have the ability to use.
My members have been setup with roles using the WP plugin User Role Editor. It would be great to have the ability to set and track users through the Role method as it is easy to set Roles.

Please let me know how and where the level is set.


May 21, 2014 at 6:52 am

I am receiving a Fatal Error from WordPress for S2 when I view an event. S2 was reinstalled and produced the same error. When Deactivated, no error.
Fatal Error (hide details) (remove)
The site encountered a problem that it cannot recover from. Please use the following information to try to resolve the problem.

Error Message

Fatal Error: Call to undefined function get_user_field() in /home/ptncde5/public_html/wp-content/plugins/espresso-s2member-pr/index.php on line 37

The Event Espresso – s2Member Integration plugin code created an error that caused PHP execution to fail.

The code tried to run a function that doesn’t exist (get_user_field()). This type of error is typically caused by a simple typo (is_hom() rather than is_home()), by calling a function provided by a plugin when that plugin is not activated, by calling a function before it is ready (such as calling a function before the code that creates it has run), or by using a function that no longer exists (the function may have been removed from WordPress core or the plugin/theme that previously supplied it).


Invalid code modifications can cause this problem. If you have made any modifications to the plugin, remove them and try to load the site again.
It is possible that this plugin’s code is out of date and that an upgrade is available. Check with the plugin’s author to see if an upgrade is available.
There may be a conflict with another plugin running on the site. Try upgrading the other plugins on the site. A plugin conflict can be ruled out by deactivating all the other active plugins on the site and checking to see if the error still occurs.
The Event Espresso – s2Member Integration plugin may not have been fully uploaded. Uploading the plugin again could fix the issue. Important: If you do this, you will lose any modifications made to the plugin.
Error Source Details

Type Plugin
Name Event Espresso – s2Member Integration
Version 1.1.b
Author Event Espresso
Path /home/ptncde5/public_html/wp-content/plugins/espresso-s2member-pr
File index.php
Other Software Details

WordPress Version 3.9.1
PHP Version 5.3.28
Full Error Details

Type Fatal Error (E_ERROR)
Message Call to undefined function get_user_field()
File /home/ptncde5/public_html/wp-content/plugins/espresso-s2member-pr/index.php
Line 37
Type Description This type of error indicates that PHP cannot continue to run the code. Typical causes of this type of error are code bugs that have typos, missing or incomplete files (such as a file that was only partially uploaded), and the code using more memory than it is allowed.


May 22, 2014 at 10:15 am

I wanted to check on the status of this problem report.

I have not received a reply for the two posts on:
May 20, 2014 at 10:51 pm
May 21, 2014 at 6:52 am


  • Support Staff

May 23, 2014 at 3:05 pm

Hi there,

You might check your copy of S2 member in /includes/functions/ to make sure you have the get_user_field function. Here are a few links to S2member’s documentation that may help:

With your other question, you set the membership level where discounts kick on in Event Espresso > Member settings.

Membership levels get set on the edit/create user screen in the admin:


May 28, 2014 at 8:44 pm

<pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”>Using S2 Levels seems like a hard way to set ticket pricing. It is not easy and you don't have much to work with. I have been using User Role Editor for over a year and it is great for setting specific roles and capabilities.
For each ticket type you could add a related role. If you have that role capability then you see your ticket.
For example I could have a 'member' role, 'nonmemeber' role, 'sponsor' role, etc. Which ever roles are set in User Role Editor you shows a dropdown for each ticket type in "Event Pricing".
Event Pricing
Standard Pricing
Name 2: Non-members
Price $: 20.00
Role: <dropdown with list of roles from User Role Editor> nonmember is selected
Member Pricing
Name 2: Members
Price $: 15.00
Role: <dropdown with list of roles from User Role Editor> member is selected

Name 2: Sponsors
Price $: 0.00
Role: <dropdown with list of roles from User Role Editor> sponsor is selected
When a nonmember logins in he only sees the $20 ticket.
When a member logins in he only sees the $15 ticket.
When a sponsor logins in he only sees the $0 ticket.
If you have multiple roles assigned to users you have a selection to show all selections for that user or only show the lowest cost.
You could also add an open/close date field for a ticket so you could set date ranges for tickets.
For members who purchase from this to to this date the cost is….
After that date the cost is….

This seems so much easier than adding the overhead of S2 for just using the levels, which does not give you much options and no ease of use.

I've been looking for membership event management for over a year and your application is great except for the ticketing.
What is the timeline for completing the S2 integration or going with a another solution for easier ticketing selections?


May 29, 2014 at 2:51 am


Thanks for your feedback.

We added an S2 Integration plugin (beta) in response to the numerous EE users who also use S2Member. We are aware it is not a perfect solution.

It is most likely that when we review the membership plugin for EE4 that we will expand how it handles different user roles. However I cannot say for sure what it’s process will be or when it will be come available.

It is unlikely that the S2Member integration for EE3 will have any further features added to it due to EE4 becoming the standard version of Event Espresso.


May 31, 2014 at 10:42 am

Searching through the forums I found a post from a user which looks to fit what I am trying to achieve,
Is there a way for me to contact the user to see their final solution or do you have a copy that you can email or post?
This would be great to have a section where users post their completed solutions.

Jonathan Wilson

May 31, 2014 at 11:36 am

Hi there,

We actually never heard back from this user about what their outcome was. And since we have been working on EE4, we haven’t implemented the changes request in that forum post.


June 5, 2014 at 6:22 am

Could you let the user know that I am interested in their solution or is there a way for me to directly contact them?


June 5, 2014 at 6:53 am


I have opened up the old thread, feel free to leave a message for them there. If they have signed up to notifications they will get an email about your response. They are under no obligation to respond to you and we will not be able to supply their email or contact details due to privacy.


June 5, 2014 at 7:03 am

I appreciate you doing that. Thank you.


June 5, 2014 at 7:05 am

You are welcome.

The support post ‘Using S2 to set ticket levels’ 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 the Roles and Permissions add-ons for EE3.

Status: closed

Updated by  Dean 5 years, 10 months ago ago

Topic Tags


This topic is: resolved
Do NOT follow this link or you will be banned from the site!