Support

Home Forums Event Espresso Premium Different checkout text for Registration and waitinglist buttons

Different checkout text for Registration and waitinglist buttons

Posted: January 11, 2017 at 2:58 am

Viewing 10 reply threads


Katharina

January 11, 2017 at 2:58 am

Hi Support team,
I have created an event and activated the option to show a waiting list after the event is full booked.
For legal reasons, the first button text is “payable order”, because a payment is needed.
I would like to show at the waitinglist registration page a different button text, something like “put on waitinglist”, as it is not yet payable at this time and that would confuse the user.
As far as I can see, always the same text is displayed in the button as soon as a log-in form is displayed.


Josh

  • Support Staff

January 11, 2017 at 12:02 pm

Hi there,

Can you post a link to the wait list event so we can see what’s going on? Thanks.


Katharina

January 12, 2017 at 1:43 am

Hi Josh,

here is the link https://www.suchhunde-hessen-sued.de/reg-test/
Thanks!
Kathi


Josh

  • Support Staff

January 12, 2017 at 7:56 am

So it looks like you’re requiring someone to log into the website before they can sign up on to the waiting list. Is that correct?


Katharina

January 12, 2017 at 7:59 am

no, if you open this link https://www.suchhunde-hessen-sued.de/reg-test/ you must click on “in warteliste einschreiben” (this open the waitinglist event).
you can access your data and then you will see the checkout page which shows the button “payable order”. And in this case I would like to show a different text.
I would like to show always a different button text if it’s a “waiting list” event.


Josh

  • Support Staff

January 12, 2017 at 8:18 am

May I ask did you follow every step of this guide to set up the wait list event?

https://eventespresso.com/wiki/create-a-waiting-list-for-your-event/


Katharina

January 12, 2017 at 8:29 am

point 1-3 is done, yes.
point 4-5 makes no sense to me, because i want to change a button text, not the main overview.

you can see this closed event here https://www.suchhunde-hessen-sued.de/termine/event-registration/?ee=1303 and the button “in warteliste einschreiben (join waiting list” but after you have entered your data and clicked on “zur anmeldung” you see a second button and this one should be changed.


Josh

  • Support Staff

January 12, 2017 at 2:36 pm

Hi Katharina,

This is going to require making some edits to the template. Normally the registration form button has the text “Submit” which is then translated if there’s a translation file loaded up. Here’s the code from the end of the /registration_page_display.php template that makes this happen:

<input class="<?php espresso_template_css_class('btn_event_form_submit','btn_event_form_submit ui-button ui-button-big ui-priority-primary ui-state-default ui-state-hover ui-state-focus ui-corner-all'); ?>" id="event_form_field-<?php echo $event_id; ?>" type="submit" name="Submit" value="<?php _e('Submit', 'event_espresso'); ?>">

That last part is the part that can be changed. So instead of this:

value="<?php _e('Submit', 'event_espresso'); ?>">

It can be this:

value="<?php $is_active['status']=='SECONDARY' ? _e('Join Waitlist', 'event_espresso') : _e('Submit', 'event_espresso'); ?>">


Katharina

January 13, 2017 at 2:08 am

Hi Josh,

near perfect 🙂
I can see it here https://www.suchhunde-hessen-sued.de/termine/event-registration/?ee=1304 but it must be shown on the next page.
so after you have entered your data, you see a checkout page (confirmation overview) and there I want to change the button text.

so from my point of view it’s the file “confirmation_display.php”?


Josh

  • Support Staff

January 13, 2017 at 8:42 am

Yes, you can copy the confirmation_display.php file over to /wp-content/uploads/espresso/templates, then make some edits to the button code there.

For example, the standard button text code is this:
value="<?php _e('Confirm Registration', 'event_espresso'); ?>&nbsp;&raquo;"

and that can be changed to something like this:

value="<?php $event->event_status=='S' ? 
_e('Confirm Joining Waitlist', 'event_espresso') : 
_e('Confirm Registration', 'event_espresso'); ?>&nbsp;&raquo;"


Katharina

January 17, 2017 at 2:50 am

perfect!!!! many thanks!

Viewing 10 reply threads

The support post ‘Different checkout text for Registration and waitinglist buttons’ 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