Posted: February 21, 2019 at 7:39 pm
|
We’re organizing events with different pricing: Certain members (like students), are restricted to one reduced ticket but may purchase more for the regular price. I installed the WP User Integration Add-on in order to offer all those different options. I’m struggling with a few things: 1. Is there a way to show the respective member price and regular price, only for logged in members? All other (too many) options are just very confusing. 2. Can I take off ‘on sale’ and ‘goes on sale’? 3. Can I only show the relevant tickets according to the sale dates? 4. Can you please explain ‘ticket capability requirement’ further? I added a separate role for each member option, but I’m not sure how ‘manage options’ plays into that? I have identical roles for ‘student’ and ‘individual member’. When I add ‘student’ to WP User Capability, I get the correct price option, but when I add ‘individual’ or ‘individual member’, I only get the regular price option. 5. I set the limit for the event at ‘Event Datetimes’ and deleted all Quantities in the individual tickets, but every time after updating, the overall limit number shows in each ticket. How can I avoid that? Thanks for your infos. |
Hi there,
Yes, you’d use the minimum capabiliy setting on the ticket and then we have snippets to remove tickets that aren’t available to the user rather than displaying a message, but… one of your other questions touches on this more so we can address this once everything else is working as expected.
I’m not sure what you mean here, can you add more details
Those are set up as 2 separate tickets, correct? If so, you can hide expired and ‘pending’ tickets, meaning your early bird shows until it expires at which point your ‘regular’ ticket would show up. I can provide details on how to do that, but is that what you are looking for?
May I ask why you are using ‘manage_options’? That capability would normally be set on an administrator account, you normally don’t want to to set that on your sites as a requirement. So you’re currently setting the ‘role’ in that field rather than a capability?
You can’t, may I ask why you want to remove the limit? Each ticket can only sell up to a maximum of the overall limit (the datetime limit). You can have a combination of any of those tickts to make the 50 and you can have lower quantities than the datetime limit set on tickets, but not higher. |
|
|
Hi Tony,
>>You didn’t answer that question below. Please send me those snippets incl instructions on how to use them.
>>It doesn’t look like I can upload anything so let me try to explain further: I put ‘early bird’ into the ticket text and it also automatically says ‘On Sale’ in green behind the ticket. That’s redundant and I wouldn’t mind having ‘Early Bird’ behind the ticket in green as it is much more obvious so this becomes a two-part question:
>>Correct, they are set as different tickets. WHERE can I hide expired and pending tickets?
>>I’m not actually using ‘manage_options’ but it’s mentioned in your Add-on documentation (several times) and I have no idea what to make out of that.
>>What capability would be set on an administrator account? I just want to link the correct member to its pricing…
>>Yes, it was a try since I don’t know what else ‘WP User Capability’ could be. Your question mark reveals: >>Are you making a WP User Integration Video anytime soon? I doubt I’m the only one with questions.
>>Because your ‘create event’ video says to do so. I understand that this is incorrect and understand now how it works. I’m looking forward to receiving your solutions for my questions. Thank you. |
I didn’t say I’d answer that question below, to quote myself:
Adding snippets to hide various ticket setups may not work as expected until the settings/capabilities used are correct, so please don’t add snippets to hide tickets based on user capabilities until it’s clear the add-on and capabilities are used as they are expected to be.
What would you like to upload? A screenshot? You’ll need to host the image and post the link here, we have some suggestions on how to add screenshots here: https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots It sounds like you mean the status legend on the ticket editor, here – https://monosnap.com/file/lW69Q5hWYyfzrzxyyr9lcLOHLJHREu Hovering over that should show you the current ticket status – https://monosnap.com/file/Yi2rGAiDrIhP2RSynSv5Zf1s4nW3Yf Is that what you want to change?
If it’s the location above, then no you can’t change it to ‘Early bird’ as it is the status of each individual ticket to give you (the admin) a quick overview of what your tickets are doing at any given time. So if you have a ‘normal ticket’ that has a status of ‘On Sale’ it would also show (if you changed the above) to ‘Early Bird’ so it wouldn’t make sense for other tickets.
You could use some CSS to hide it it within the admin, however, if you see text rather than the screenshot I added above for that location it sounds like something is interfering with the ticket editor as you should just see a coloured bar, unless you hover over it. If you can add a screenshot of what you see we can advise further from there.
For expired tickets you can go to: Event Espresso -> Events -> Templates -> Ticket Selector Template Settings Set the option ‘Show Expired Tickets?’ to No and save. For pending tickets you can use some CSS:
Add that to Appearance -> Customize -> Additional CSS.
In short, don’t use that capability on tickets, it’s an example in the documentation as we can’t provide examples of specific capabilities due to the many different ways in which people set up their users capabilities and each use case is different.
I was referring to the fact that only an administrator would have that So if you set the ‘Ticket Capability Requirement’ to
Ok, what plugin are you using to manage your user accounts currently? You posted above that you want pricing for ‘non-members, students, regular members, corporate members, etc.’ Are non-members logged out members or is that another type of user? As in do they have a user account they log into but aren’t classed as a ‘member’ or just normal public visitors without an account? The others I’m assuming are different roles on the site, is that correct? If so what are you using to create the roles? S2 Member for example?
Ok, I don’t know if you’re familiar with roles and capabilities so here’s a quick explanation. A role is a collection of capabilities, the role itself is nothing more than a title as it’s the capabilities you get from that role which give you the access. So as an example I could create a user account for you on my site and give you the administrator role, but then edit your account to have ONLY the ‘read’ capability. That would mean that although you have the ‘Administrator’ role, you would only actually have access to what a subscriber would as a subscribe role only give you the read capability. So in that field your telling EE what capability the current user needs to have to view/purchase that ticket and if they don’t have it, they can’t view the ticket. You’ve asked how you link a member type to a ticket, but with the info we have can’t give you a definitive answer. You need to set a capability that the user account you want to access the ticket has so they can view it. Problem is, depending on how the role/user account is set up that can differ and depending on the plugin you are using to create/manage those user accounts can differ again. This also links to my #1 comment and is why I didn’t just hand over snippets as there more to it than just a snippet to ‘fix’ the problem. It gets a little confusing with WordPress because, at one point, someone thought it was a good idea that checking for a specific role was a good idea and so they’ve had to leave that function in core to keep backwards compatibility. That means you CAN set a role in a capability check and it will work, but its advised you don’t, you should use a capability available on the user account to make sure it continues to work as expected. The only reason I mention it is because you may find some tickets work as you have their role set in the field, but its not the correct method to use.
We don’t have plans to currently, but I can make a note of it to see what we can do. The reason why we don’t have an in-depth video of this all ties into the above, we make a video that shows how to do it with X and then it’s completely different for every user using Y and it just complicates things more. EE doesn’t have a set way to do it, as long as you are using capabilities, it will work. The problem is that not everyone is using capabilities as they should and some don’t even know the difference, they just used a plugin as recommended by X post they read which may not even use capabilities at all by default (Paid Memberships Pro is an example of a membership plugin that doesn’t use capabilites). |
|
|
Hello Tony, Thanks for your responses, a lot got more clear to me. 1. Take out ‘On Sale’ 2. Hide pending tickets 3. Link to correct Member Pricing Please let me know if you need any further information from my side. Thank you. |
|
Hi Tony, My issues have been resolved, many thanks for your assistance. I might be back at a later point to check on those snippets again but you may close this topic. Thank you. |
Hi there, Although you mentioned you now have this working, I’ll post how I would do it anyway for future readers.
As you mentioned, them being based on a subscriber they’ll only have the You have a lot of choices on what you can use here but I’d use something like
Then in student tickets, you can set the
Correct, but you can also ‘stack’ capabilities (as some membership plugins do) to allow ‘higher’ members access to ‘their’ tickets and ticket below their role, for example, say students were level_1 members, regular members level_2, and corp level_3 you can do something like this:
Which means you can use capabilities to give users access to multiple tickets and single tickets etc. IE setting a ticket with a capability of level_2 would give ‘regular members’ and ‘students’ access to that ticket as they both have that cap.
EE does not manage your capabilities, it uses them, but does not manage them (intentionally as it is not a member management plugin) so any changes you make would be outside of Event Espresso and using either the membership plugin or whatever you are using to manage capabilities, in your case User Role Editor. |
|
The support post ‘WP User Integration Add-on’ 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.