Support

Home Forums Event Espresso Premium Help needed with wording changes and registration payment process

Help needed with wording changes and registration payment process

Posted: November 7, 2022 at 12:38 am


PPManager

November 7, 2022 at 12:38 am

Hi there

I have made a video going over a few things I need some help with. I have looked through the forums for all I can, I am just stuck on a few things:

Firstly, here is the video: https://www.awesomescreenshot.com/video/12279196?key=bf46e5af15c22683a4f1169a74a356bc

This is for the website page > https://professionalpestmanager.com/termite-professional-conference/event-conference-booking/

This is the list of what I go over in the video:

1. How to moved event title content in (…) to second line
.

2. How can I change the non member logged in ticket message “… is available to members only” to “can only be accessed when logged in”. And either provide a link to login or add “press the login button at the top right of the page”


3. Is it possible to remove the (For Termite Professional Conference) tag on the ticket information on Attendee Information and Checkout page. Not super important if we can’t, just a nice to have.

4. On the registration page, how do I change the wording “Use Attendee #1’s information for ALL attendees” to “Use Attendee #1’s information for ALL events/attendees”.


5. Payment process for Stripe CC payment. The instructions say to press “Proceed to Finalize Registration” button, but there is also a Pay Now button displaying. This is a bit confusing. Plus there is an issue with the country select option as you will see in the video.

I hope that all makes sense and thanks very much for your help.


Tony

  • Support Staff

November 8, 2022 at 6:09 am

Hi there,

1. How to moved event title content in (…) to second line
.

That’s your ticket name, it’s one single string so you can’t separate it out into a new line currently.

2. How can I change the non member logged in ticket message “… is available to members only” to “can only be accessed when logged in”. And either provide a link to login or add “press the login button at the top right of the page”


So, the reason your current translation isn’t working is because there is actually 2 spaces before ‘is’ in the original string, your translation needs to match the original exactly.

However, there is also a filter available for that string which I would recommend using over the above.

FHEE__EED_WP_Users_Ticket_Selector__maybe_restrict_ticket_option_by_cap__no_access_msg

I have a couple of examples of what you can do with that here:

https://gist.github.com/Pebblo/783dc4f9f43b9780d860112817edfd6d

You could just set the text you want on line 5 from the first snippet and 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/

3. Is it possible to remove the (For Termite Professional Conference) tag on the ticket information on Attendee Information and Checkout page. Not super important if we can’t, just a nice to have.

Yes, its possible, I’ve posted some details on how you can translate the string used for that here:

https://gist.github.com/Pebblo/8c246686e45ade7bc69388d47de22522

In your example you would likely want to return an empty string:

$translated = '';

Note, the above will NOT work in the translation function you are using in your video as the strings are translated differently.

4. On the registration page, how do I change the wording “Use Attendee #1’s information for ALL attendees” to “Use Attendee #1’s information for ALL events/attendees”.


Use your current translation plugin and do something like:

'Use Attendee #1\'s information for ALL attendees' => 'Use Attendee #1\'s information for ALL events/attendees'

You need to escape the apostrophe and the reason is the string opening uses ', so PHP things your 's is to close the string and doesn’t know what to do, adding \' tells PHP its part of the string itself.

5. Payment process for Stripe CC payment. The instructions say to press “Proceed to Finalize Registration” button, but there is also a Pay Now button displaying. This is a bit confusing. Plus there is an issue with the country select option as you will see in the video.

Ok, so the ‘Proceed to Finalize Registration’ option is part of the Single Page CheckOut process (SPCO) for short. It’s the Attendee information, payment options steps etc. Its there because you can have multiple different payment methods enabled, so have their own pay button (like Stripe does) and others do not.

So in your example, SPCO displays the finalize button and Stripe is displaying its own Pay button. The SPCO button is disabled, in your theme the styles it applies makes that less obvious.

First, let’s address the text issue.

Go to Event Espresso -> Payment methods -> Stripe.

In the description section there do you have the text that is causing the confusion set there?

If so, update it to whatever you prefer. The default for the payment method should be:

Click the “Pay Now” button to proceed with payment.

The issue with the button not working I think it a bug, I think its from not having the country selected and attempting to pay. The validation is kicking in and highlighting the country field as not set, but then re-enabling the button to allow you to proceed.

I’ll check into this now and confirm.


PPManager

November 12, 2022 at 7:56 am

Hi Tony

Thanks so much for the detailed reply. Those suggestions really helped.

I was able to hide the additional “Proceed to Finalize Registration” button that appeared on the checkout page using CSS so that is fine and all working now. We are in test mode, so it works from a testing perspective.

There is just one more question I have.

On registration, when a user is going through the booking process and they add an email address that is associated with an existing WP User account profile on the website, it comes up and says that they have to login to proceed with the registration. I get that this is part of the WP User Integration process, however is there a way to turn this off so the user does not need to login to the account. Is it a matter of switching the WP Sync User Profile setting to No? We have the Auto create user function disabled as we do not want this function. and the setting for requiring users to login to register is also switched off as we will have non users and users on specific user roles registering.

For context, we have a full paying member only ticket option for the event that is associated with a specific user role (eg Subscriber Plus) and a custom capability and only those user profiles will require to login to be able to access that specific ticket option. If they don’t login, they wont be able to get to choose that ticket option, but they could purchase any of the the other tickets options available.

We also have a free member user profile account on the site that does not get access to the full paid member only ticket option, so they do not have to login on the registration for to access the ticket. Nor will non members or new visitors to the site.

So when a free member account that has an existing WP User profile on the site, they are being asked to login as they have an existing email address associated with the email they are using on the form.

We would like to switch the whole login process off.

I hope that makes sense.

Thanks very much again for your help and support.


Tony

  • Support Staff

November 13, 2022 at 7:59 am

I was able to hide the additional “Proceed to Finalize Registration” button that appeared on the checkout page using CSS so that is fine and all working now. We are in test mode, so it works from a testing perspective.

Some friendly advice from someone who has hidden that button a lot.

If you are not already, when hiding the button, make sure you are only targeting the button when it is disabled.

Theres a few classes on that button to allow for it:

.spco-next-step-btn .disabled {
   display:none;
}

Or

.spco-disabled-submit-btn {
    display:none;
}

Why only when disabled? Because in X months time if you want to change the payment method to something else and can’t figure out why people can’t complete payment with the finalize button hidden then you need that button again 🙂 Hiding it only when disabled, removes that problem to begin with.

On registration, when a user is going through the booking process and they add an email address that is associated with an existing WP User account profile on the website, it comes up and says that they have to login to proceed with the registration.

You can use this snippet to disable the check:

https://gist.github.com/joshfeck/1131145859a3fab58f4d#file-disable_email_match_everyone-php

Is it a matter of switching the WP Sync User Profile setting to No?

No, it id only disabled with the above snippet.

However, I do highly recommend you disable the sync feature if you are using the above snippet. It is far to easy to overwrite your user account data with your registration data with that option enabled and the snippet in place.


PPManager

November 13, 2022 at 9:06 pm

Thanks very much for the suggested CSS hide terms, very helpful.

Also thank you for the code snipped to check the emails. I have also switched to No the sync user settings as you recommend.

Sorry, another issue that we are seeing is on the thank you page after registration, there are edit info and click her to edit All Attendee Information links, they don’t appear to be working when we click on those links, it just refreshes the page:

See screen recording > https://www.awesomescreenshot.com/video/12463352?key=479641ab19d2deefc55ef1927f30e3b6

Thanks again for all your help.


PPManager

November 14, 2022 at 12:25 am

Hi again, to add to the above.

On the thank you page, how can I add the ticket name that the user purchased. Currently, they have to look at the receipt / invoice to view the info, but it is not displayed directly on the thank you page.

We would ideally like the ticket name purchased to show directly under “for: event name” before the Registrant Name table.

I found this forum post and tried to follow along, but the template file appears to be deprecated and not sure what to do next.

Thanks again.


Tony

  • Support Staff

November 14, 2022 at 4:08 am

Ok, so I’ve just added a test registration to your event in my name.

You’re using the wrong CSS selector currently:

#spco-go-to-step-finalize_registration-submit {
    display: none;
}

Is hiding the button on the attendee info page:

https://monosnap.com/file/7nv8KzPsD3Yp18JnplPX6kKtl5z3Zm

Obviously, I know it’s there so worked around it, but you’ll likely want to change that selector to one of the above.

Sorry, another issue that we are seeing is on the thank you page after registration, there are edit info and click her to edit All Attendee Information links, they don’t appear to be working when we click on those links, it just refreshes the page:

The page doesn’t refresh, the request is going to the correct page, then being redirected back to the thank you page.

Hmm, strange. I can’t reproduce this.

Do you have an redirections setup?

We would ideally like the ticket name purchased to show directly under “for: event name” before the Registrant Name table.

I found this forum post and tried to follow along, but the template file appears to be deprecated and not sure what to do next.

Which forum post and template?

The template for registrant details is:

\event-espresso-core\shortcodes\espresso_thank_you\templates\thank-you-page-registration-details.template.php

However, you can’t add the ticket name to the section you are referring to without also considering what will happen when multiple tickets are purchased at the same time?


PPManager

November 14, 2022 at 7:52 pm

Hi Tony

Thank you for doing the test and spotting those things. In our testing, the button displayed just fine with the CSS that we entered, but noticed that on your testing, that the button is not there for the free ticket, so I have now updated the CSS selector to one of yours.

Sorry, this is the forum post I was referring to: https://eventespresso.com/topic/ee4-add-the-ticket-description-to-the-registration-confirmation-page/ but I was mistaken as I was looking at the wrong template file.

With regards to this:

However, you can’t add the ticket name to the section you are referring to without also considering what will happen when multiple tickets are purchased at the same time?

Is there a better way to display the tickets purchased on the thank you page, particularly if multiple tickets are purchased?

Also, I added in a line item for the tax component of the ticket price, but it sits at the bottom of the information, is there a way to place the tax component in next to the total amount paid, so it shows Total and then in brackets (inc GST $amount).

Adding the tickets purchased and changing tax position is not a show stopper if can’t be done, just a nice to have.

Thanks again for hanging in there with me Tony


Tony

  • Support Staff

November 15, 2022 at 3:31 am

Thank you for doing the test and spotting those things. In our testing, the button displayed just fine with the CSS that we entered, but noticed that on your testing, that the button is not there for the free ticket, so I have now updated the CSS selector to one of yours.

Yep and the reason is with a paid ticket(s), that button would be linking you to the ‘Payment options’ step, so that buttons ID would have been something like:

#spco-go-to-step-payment_options-submit

Until they got to the payment options step and then the button would be to finalize and use the ID you had.

With a free ticket, there is no payment option step and the button is there to finalize straight away 🙂

Is there a better way to display the tickets purchased on the thank you page, particularly if multiple tickets are purchased?

Yes, use the same template file but add the details within each individual registrations row rather than with the event name.

Line 63 of the template outputs the name, just add some additional details from there, which location depends on the specific location you want to use within the row but that should get you most of the way.

Also, I added in a line item for the tax component of the ticket price, but it sits at the bottom of the information, is there a way to place the tax component in next to the total amount paid, so it shows Total and then in brackets (inc GST $amount).

Sorry, I don’t follow, where are you referring to here, please?

The support post ‘Help needed with wording changes and registration payment process’ 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