Support

Home Forums Event Espresso Premium RSVP functionality

RSVP functionality

Posted: October 5, 2017 at 9:14 am


sogtalks@gmail.com

October 5, 2017 at 9:14 am

Hi Guys,

We have two tickets; free for members (99% of the use cases) and guest for the very rare occurrence that a member brings a guest and must pay.

We have had quite a few users complain that the RSVPing for an event is very clumsy and we have seen +15 failures (out of a projected 200 possible users). We are looking for a simper way to RSVP than to “buy” a $0.00 ticket (called Member RSVP in our case.

We are thinking that an RSVP button that performs the same functionality as purchasing a single $0.00 ticket would work, still checks if user is a member etc, no other purchases. I have plowed through the code and was hoping that you could direct me to the bits and pieces required? Just a form that simplifies the number and type of tickets.

Thank you for your help.


Josh

  • Support Staff

October 5, 2017 at 11:58 am

Hi there,

Unless you’ve customized the checkout, there isn’t an option to buy a $0.00 ticket. When it’s a $0.00 ticket the submitted registration form goes directly to the thank you page and skips the payment options step.


sogtalks@gmail.com

October 5, 2017 at 2:30 pm

Josh,
On our event details page we have a ticket list, Member RSVP ($0.00) and Guest ($100.00). So when I say “buy” I mean select the number of Member RSVP (1) and any Guest tickets (very rare). You can see it here goo.gl/pFY9u6

What I would like is a button that achieves onclick (1) “Member RSVP” ticket is selected and proceeds to confirmation, as we ask meal options. They would still have the option to buy tickets in the other workflow. Our user are coonfused by selecting a $0.00 ticket when all the want to do is say yes, and I want Fish.


Josh

  • Support Staff

October 5, 2017 at 2:54 pm

sogtalks@gmail.com,

They’re confused that they have to select a quantity or are they confused by that there’s a $0.00 in the column to the left of the selector?


sogtalks@gmail.com

October 5, 2017 at 4:42 pm

They are confused at having to select a ticket option at all and then others; that they are choosing $0.00, it confuses them. It feels like a purchase, I know it is for $0.00 but…also the fact that there are multiple values in the number of selection (we need this because we don’t know how many guests they may invite, we have put in a default max 10 tickets per purchase


Josh

  • Support Staff

October 5, 2017 at 7:51 pm

Maybe what you could do is set the “Maximum number of tickets allowed per order for this event:” to 1 and remove the Guest ticket option. Then they’ll be able to RSVP with one click. Then you could add a separate, secondary event for buying guest tickets.


sogtalks@gmail.com

October 6, 2017 at 8:22 am

Josh,

That doesn’t solve the basic problem of the select a $0.00 “ticket”, that process only is causing an issue. What I need is a button with the same form with (1) Members RSVP ticket preselected on their behalf, no problem with the balance of the process. I need direction of finding that process in the code so I can add it to a button?


Josh

  • Support Staff

October 6, 2017 at 8:32 am

We actually do not recommend or support making changes to the code. Here’s another approach:

You can set the free members rsvp ticket to be required, have a minimum of 1 and a maximum of 1. These options are under the advanced ticket editor tab (you click on the gear icon). This way they won’t need to touch that input to proceed to the registration step. After that’s been done you can even hide the input will CSS too.


sogtalks@gmail.com

October 6, 2017 at 10:12 am

Ok, had a look at that and implemented that. Couple of issues:
1) can I change required text “This ticket is required and must be purchased.”?
2) now under price I get “$0.00 (CAD) / bundle”, if hide hide this with css then the quantity slides to the left, can this text be customized?
3) not sure what you mean when you said “After that’s been done you can even hide the input will CSS too.” what am I hiding?
I think we are on the right track. Thanks for your help.


Josh

  • Support Staff

October 6, 2017 at 4:27 pm

For item 1, yes you can change the text via a filter hook:

add_filter(
  'FHEE__ticket_selector_chart_template__ticket_required_message',
  function(){ return 'Your text here'; } 
);

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

With 2 and 3, you can hide undesired items with CSS if you prefer, but actually you only need to set the maximum to 1 and set the ticket to be required. If you set no minimum the /bundle will go away. You can also customize the display of the 0.00 part using another filter, more details here:

https://eventespresso.com/wiki/show-ticket-price-zero-free/


sogtalks@gmail.com

October 7, 2017 at 1:48 pm

Great solution! More clarity for RSVP with options to sell other tickets.
– set ticket is required
– set maximum tickets to 1
– created plugin to change ticket required message
– created plugin to change $0.00 to text
– a little css
Thank you for your help.


sogtalks@gmail.com

October 9, 2017 at 10:48 am

One more thing
On the Registration Checkout page there is the text “indicates an item that is required and must be purchased.” Could you please point to the correct hook for that.

Is there an easy way to access/see all the hooks from the system, is there a list? I have searched before I post.
Thank you


Tony

  • Support Staff

October 10, 2017 at 4:08 am

We don’t have a list of all hooks currently, you can use your text editor/IDE to search for FHEE__ or AHEE__ (filter hook, action hook) to find all hooks within EE (and it’s add-ons) but we have a lot.

I core alone there are over 1300 filter hooks and over 750 action hooks, that number will increase when you add in the add-ons as they have their own hooks.

There’s no hook for the text you want to change but it’s from the Multi-Event Registration add-on and all text within EE should be translatable, so you can use a function to translate that string into whatever you prefer.

We have an example of how you can do that here: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function

The original string is: ' ** indicates an item that is required and must be purchased.'

So within the strings array, you’d have:

' ** indicates an item that is required and must be purchased.' => ' ** some custom text here',

Does that help?


sogtalks@gmail.com

October 10, 2017 at 11:12 am

Perfect. I ran into some self inflicted issues as I had turned off plugin to resolve an issue and inadvertently turned on Multiple Events, which I hadn’t originally and I had issues processing what I was seeing. All works now thank you to Josh and Tony.


sogtalks@gmail.com

October 11, 2017 at 10:02 am

Sorry, but not so perfect. After setting up:
– set ticket is required
– set maximum tickets to 1
– created plugin to change ticket required message

Issue:
In our scenario membership (member) means you get a free ticket for each event, a ticket we call Member RSVP. We need to track who is coming and their meal choice. We also offer a paid guest ticket.

The solution we worked through with your help works well for an initial visit.
– Member RSVPs and maybe buys a guest ticket.
The challenge is a return visit to buy a guest ticket, or a member may not attend the event (not RSVP) but invites a guest.
– With “required” turned on the member is forced to RSVP (“buy” a free ticket) again, which we don’t want. Obviously there is no choice to choose “0” tickets now. So we turned this off and now they have choice.

So I thought we could use Ticket Capability Requirement and created a capability called rsvp and assigned it to our two member type roles.
– when implemented: logged in or not logged in; Member RSVP tickets were not available, got this message in ticket row “The Member RSVP is available to members only. On Sale”. No selection options. Is this the expected behaviour? I was expecting it to block a purchase unless you had that capability?

And is there a way to associate a ticket with a user, i.e. limit the selection of one Member RSVP ticket to a each member? Right now it is by transaction.

We have Force Login for registrations? set to Yes

Thank you


Tony

  • Support Staff

October 13, 2017 at 4:10 am

So I thought we could use Ticket Capability Requirement and created a capability called rsvp and assigned it to our two member type roles.
– when implemented: logged in or not logged in; Member RSVP tickets were not available, got this message in ticket row “The Member RSVP is available to members only. On Sale”. No selection options. Is this the expected behaviour? I was expecting it to block a purchase unless you had that capability?

No, it’s not expected. You should be able to purchase the ticket if you have the capability and not if you don’t.

If you set the capability to just read and log in with any account does it work then?

And is there a way to associate a ticket with a user, i.e. limit the selection of one Member RSVP ticket to a each member? Right now it is by transaction.

Not without some custom development, but if you are using capabilities you could do something similar to this example:

https://gist.github.com/joshfeck/51c2ef122616b48cc4846b1f44384859

However that means you’ll need to add a capability and then remove it again for each event you want to do that on, so may not work for you.

The support post ‘RSVP functionality’ 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