Posted: March 31, 2021 at 4:52 am
Hi, |
|
Hi there, The WP User integration add-on will allow you to set a ‘capability’ on the ticket which the user account must have in order for them to purchase the ticket which allows for this:
For this:
May I ask how you manage this currently? EE can be set to automatically create user accounts during registration if needed. Unless I’m misunderstanding your question it sounds like you just need to disable the above and continue to manage your users in the same way you are currently. The add-on allows you to set a capability on the ticket, let’s say that was |
|
Thanks. We initially managed the bookings by using the password option and only giving the relevant people (who had successfully completed an introductory course with us) the password. However, we don’t like the fact that this hides the event description so you have to have the password even to see what the event is about rather than only needing it to book the event. |
|
Yes, they can. Basically what they’ll see is the normal ticket selector but any tickets that have a capability set on the will show ‘The {ticket name} is available to members only’. If you look here: https://eventespresso.com/product/eea-wp-user-integration/ On the first image of the ticket selector, that first ticket is a capability restricted ticket, that is what they’ll see for all of the ticket if they all have a capability set) It is possible add the ticket selector to another page on the site and password protect that page, then leave just a ‘Register now’ button on the main event page if that will work for you? It means your users will arrive at the event page, then need to click through to another page which will show as password protected. Enter the password and just the ticket selector shows on that page. Does that work better for you? |
|
That sounds like a good solution to me – to add the ticket selector to another page on the site and password protect that page. Would that be by using the embed ticket selector code on the password protected page? |
|
You ‘could’, but personally I would just use the shortcode. ‘Embed’ is basically just an iframe, which means if you use those within the site itself you are basically loading your site, within your site. So I would use So, the first step is create the new page with the above shortcode on it, you need the public link for that page to add in the event itself. Then on the event itself, make sure ‘Display Ticket Selector’ is set to Yes. In the Alternative Registration Page setting, add the full URL for the password-protected page you created earlier: https://monosnap.com/file/Py0WJxfw9V7WVOXdlwWskB1PmCafDy When you view the event it should look something like this: https://monosnap.com/file/L9g4KWaNWZg2S7Fsh6IAPiYxAGeiaq (We can hide the external link text shortly) Clicking on register now should take you to the password-protected page, which should show the ticket selector once the password is input. If not can you post a link to the event, the password-protected ticket selector page and the password please (you can mark your reply private so only EE staff can view it). |
|
This reply has been marked as private. | |
Sure, there’s a filter that can be used to override the URL used on the calendar. Do you normally use the external registration page for any events? I can give you a snippet that will always force events on the calendar to link to the ‘normal’ URL but if you need some events to actually link offsite from there then you’ll need some additional code to check for a custom field first so just checking. |
|
Great. No, for most of our events we do not need to use an external registration page, it will only be for these password protected events so it sounds like the snippet will do the job. Please can you provide instructions on how to apply the snippet too? Thanks |
|
Ok, so the code you need to add to the site is this: https://gist.github.com/Pebblo/40c1f8dfe29a71a041c658f5b618fd2f You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ So you would create your own custom functions plugin following the above and then, above this line:
Add THIS code to that plugin. Activate the plugin and the calendar should link directly. That custom functions plugin can then be used to hold any additional functions you want/need to add to change how EE works. |
|
That’s worked perfectly, thank you so much for your help. |
|
You’re most welcome, I’m glad that worked for you 🙂 |
|
The support post ‘WP User integration, Will it Work for Us?’ 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.