Support

Home Forums Event Espresso Premium WP User integration, Will it Work for Us?

WP User integration, Will it Work for Us?

Posted: March 31, 2021 at 4:52 am


Arty-Folks

March 31, 2021 at 4:52 am

Hi,
We’ve got some events which we want only our members to book onto but for which we want the course descriptions to be available for all to see. We tried password protecting the events but this caused them to not be able to see the course descriptions including times until they had entered the password so is not suitable.
I’m wondering whether WP User Integration would work for us? I’ve read through the details of it but have a couple of questions: How would we manage who was able to create a login to then become a member? We need to maintain an aspect of control over who books on our longer courses (the initial introductory courses are open to anyone so we do not want everyone who books to immediately become a member). Is this possible and how is it managed in WP User Integration?
Thanks


Tony

  • Support Staff

March 31, 2021 at 7:11 am

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:

We’ve got some events which we want only our members to book onto but for which we want the course descriptions to be available for all to see.

For this:

How would we manage who was able to create a login to then become a member? We need to maintain an aspect of control over who books on our longer courses (the initial introductory courses are open to anyone so we do not want everyone who books to immediately become a member).

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 read (which would give any user that was logged into the site access to it) but if you want more control over purchasing specific tickets you need to use more specific capabilities on the accounts.


Arty-Folks

March 31, 2021 at 8:09 am

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.
At the moment none of our users have wordpress accounts so if we do use WP User Integration this would be new to us.
Just to clarify, setting the capability is on the ticket so people who did not have a login would still be able to see the event description but would not be able to book on the event?
Thanks


Tony

  • Support Staff

March 31, 2021 at 8:58 am

Just to clarify, setting the capability is on the ticket so people who did not have a login would still be able to see the event description but would not be able to book on 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?


Arty-Folks

March 31, 2021 at 9:27 am

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?
How would I leave the ‘Register Now’ button on the main event page? Would you mind taking me through the steps?
I tried linking it to an alternative registration page which was password protected to book through but that didn’t work for me unless I didn’t set it up correctly.
Thanks, I appreciate your help on this.


Tony

  • Support Staff

April 1, 2021 at 3:53 am

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 [ESPRESSO_TICKET_SELECTOR event_id=xxx] where xxx is your event id (you can see it next to the event in Event Espresso -> Events). Or if you edit the event in question, click the shortcode button next to the Permalink at the top and it will display the shortcode for you.

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).


Arty-Folks

April 6, 2021 at 2:45 am

This reply has been marked as private.


Tony

  • Support Staff

April 6, 2021 at 4:42 am

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.


Arty-Folks

April 6, 2021 at 8:19 am

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


Tony

  • Support Staff

April 6, 2021 at 3:38 pm

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:

/* Stop Adding Functions */

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.


Arty-Folks

April 7, 2021 at 9:25 am

That’s worked perfectly, thank you so much for your help.


Tony

  • Support Staff

April 7, 2021 at 9:35 am

You’re most welcome, I’m glad that worked for you 🙂

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week, 1 day ago ago

Topic Tags

Notifications

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