Support

Home Forums Event Espresso Premium Modify Item Description: Paypal Express and Paypal_Standard

Modify Item Description: Paypal Express and Paypal_Standard

Posted: February 10, 2018 at 4:29 pm


lovewellinstitute

February 10, 2018 at 4:29 pm

Same question as in ticket: https://eventespresso.com/topic/changing-the-paypal-item-description-for-paypal-pro/

Is there a way to update the item description on the paypal transaction? I would like it to include the attendees name, we have lots of parents paying for kids tickets and need the kids name in item description.


Tony

  • Support Staff

February 12, 2018 at 2:59 am

Hi there,

All of the payment methods in EE now run through a filter – FHEE__EE_Gateway___order_description

That filter can be used to change the default description for any/all payment methods and we have some examples of doing so here:

https://gist.github.com/joshfeck/9805da8ac5afff20e6ef7d331c79e08b

One thing to be aware of is a lot of payment providers limit the length of the description field you can use so you may not be able to include all of the details you would like to.


lovewellinstitute

February 12, 2018 at 8:39 pm

Tony, thanks for the github link but I don’t see any snippets for participants name. Would you be able to put this together?


Tony

  • Support Staff

February 14, 2018 at 4:44 am

Something like this:

https://gist.github.com/Pebblo/9b6864bbd3c8253607bbd35592656962

Will send {Event Name} tickets for {attendee names} as the description.

Note the snippets are intended as examples on how to build your own functions are unsupported.


lovewellinstitute

February 18, 2018 at 10:45 pm

Tony – Do have a path for where this should go?


Tony

  • Support Staff

February 19, 2018 at 1:42 am

It can go in either your themes functions.php file (preferably a child theme) or you can create a custom functions plugin and add it to that:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 11 hours, 6 minutes ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!