Support

Home Forums Event Espresso Premium Event Name in Invoice an Registration

Event Name in Invoice an Registration

Posted: August 25, 2016 at 6:28 am


ps

August 25, 2016 at 6:28 am

Hi EventEspresso team

I wanted to ask, how I can remove the “(For Eventname)” in the invoice page and confirmation page. I would only like to display the Eventname, not the (For Eventname), so the (For ) should be removed.
The images can be viewed under these links, I marked the parts in yellow:
Checkout Page
Confirmation Page
Invoice Page

Thanks a lot and best regards.


Tony

  • Support Staff

August 25, 2016 at 11:29 am

Hi there,

That string is saved to the database during the registration so it can not easily be removed from existing registrations, however moving forward you can remove the ‘For’ from any new registrations using this function:

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

That will remove the ‘For’ from any registrations made from when that function is added to your site.

You can add that function to your themes functions.php file or a Custom Functions Plugin.


ps

August 25, 2016 at 12:16 pm

Hi Tony,
Thanks a lot. Does it also remove the () ?
Thanks for the clarification and best regards!


Tony

  • Support Staff

August 26, 2016 at 2:58 am

Ah, apologies, no it does not.

To do that you change this line:

$translated = '(%1$s)'; //Remove the 'For'

to this:

$translated = '%1$s'; //Remove the '(For )'

The support post ‘Event Name in Invoice an Registration’ 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