Support

Home Forums Event Espresso Premium Custom Payment Overview verbiage

Custom Payment Overview verbiage

Posted: December 15, 2013 at 9:14 am


d37toastmasters

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

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.


d37toastmasters

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.

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