Support

Home Forums Event Espresso Premium [LINE_ITEM_DESCRIPTION]: Edit the text

[LINE_ITEM_DESCRIPTION]: Edit the text

Posted: January 22, 2017 at 11:25 am


thepassiongeneration

January 22, 2017 at 11:25 am

Hello!
When priting the [LINE_ITEM_DESCRIPTION] in receipts or invoices appears a text like this: “(For …)”.
How could I remove “(For …)” and leave the name of the event?
Thanks,
Marcos


Tony

  • Support Staff

January 23, 2017 at 2:32 pm

Hi Marcos,

I have previously posted a function to remove that string here:

https://eventespresso.com/topic/event-name-in-invoice-an-registration/

However note that the line items are created and then saved to the database so only registrations made AFTER this function is added to the site will have that string removed.

Its this function here: https://gist.github.com/Pebblo/8c246686e45ade7bc69388d47de22522

To remove the () you need to return just %1$s

The support post ‘[LINE_ITEM_DESCRIPTION]: Edit the text’ 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