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
Can PayPal notification include Event Date? | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Can PayPal notification include Event Date?

Can PayPal notification include Event Date?

Posted: April 9, 2014 at 3:26 pm

Viewing 0 reply threads


Suzanne Schriver

April 9, 2014 at 3:26 pm

Currently the PP notification I receive includes the registration name, event name, and amount paid, however, for my recurring events, I’d also like to know which date they registered for. Is there a way to modify the notification message?


Josh

April 11, 2014 at 3:05 pm

Hi Suzanne,

It turns out that Event Espresso doesn’t send the event date to PayPal, but it’s possible to add it to the fields that do get sent.

So to change it so the date gets sent to PayPal, and so the notification includes the event date, you can add it to the item_name field that EE sends. This will require some modifications to the paypal_vars.php file in the PayPal gateway.

First, you add the event start date to the SQL query ( ~ line 37 ) :

$SQL = "SELECT a.final_price, a.orig_price, a.quantity, ed.start_date, ed.event_name, a.price_option, a.fname, a.lname ";

Then you add the the date to the item name field ( ~ line 48 ) :

$myPaypal->addField('item_name_' . $item_num, $item->price_option . ' for ' . $item->event_name . ' on ' . $item->start_date . '. Attendee: ' . $item->fname . ' ' . $item->lname);

Then you can copy over the entire PayPal gateway to /wp-content/uploads/espresso/gateways to preserve your changes.

Viewing 0 reply threads

The support post ‘Can PayPal notification include Event Date?’ 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