Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Custom Payment Overview verbiage | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Custom Payment Overview verbiage

Custom Payment Overview verbiage

Posted: December 15, 2013 at 9:14 am

Viewing 2 reply threads


Jake Vizner

December 15, 2013 at 9:14 am

Currently, the verbiage on the Payment Overview page is “Your registration is not complete until payment is received.”

For specific events I would like to include a custom verbiage while keeping the standard verbiage for the rest of the events.

For example:

Event ID=88, custom verbiage = “Custom verbiage 1”
Event ID=102, custom verbiage = “Custom verbiage 2”
all other events = default custom verbiage

Is this possible?

Thank you,

Jake


Dean

  • Support Staff

December 16, 2013 at 1:25 am

Hi Jake,

Yes it’s possible but would need a template edit.

In payment_page.php, around line 38 you will see the string in question.

<?php _e('Your registration is not complete until payment is received.', 'event_espresso'); ?>

You could modify it to be like this

<?php
				//var_dump($event);
				if($event->id == 3) {
					echo "TEST";
				}
				else {
				_e('Your registration is not complete until payment is received.', 'event_espresso');
				}
				?>

Obviously replace TEST with the text you want it to display.

You could easily change the $event->id to $event->category_id and use a category instead, so that you don’t have to change the code all the time, but simply allocate that category to the event.


Jake Vizner

December 21, 2013 at 8:10 am

It took me a while to figure out that category_id is a string number, not the name of event category defined in Event Espresso. Grrrr. I also ended up using a switch statement instead of if/else and everything is working great.

Viewing 2 reply threads

The support post ‘Custom Payment Overview verbiage’ 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 - Staging Server