Support

Home Forums Event Espresso Premium PayPal Item ID (EE4, PayPal Standard)

PayPal Item ID (EE4, PayPal Standard)

Posted: November 2, 2015 at 7:52 am


Penny

November 2, 2015 at 7:52 am

Hi, I’m using EE4 with PayPal Standard and wish to input a reference into PayPal’s Item ID column so it can be reconciled successfully.

I found a support thread from 2013 saying this would involve custom coding but wasn’t sure if this was available for EE4? I just want a short reference (E.G. line item title would be Spring Walk Ticket, Line Item ID would be SW16). This is handled by a SKU in WooCommerce, is there anything for EE4?

Unfortunately, if I can’t get anything in the Line Item ID it may well mean I can’t use EE4 for this client so I am very keen to find a solution!

Many thanks in advance, Penny


Lorenzo Orlando Caum

  • Support Staff

November 2, 2015 at 9:01 am

Hi Penny,

Event Espresso does not have a SKU option at this time. Is that for tracking in some like a CSV report?


Lorenzo


Penny

November 2, 2015 at 9:03 am

Hi Lorenzo,

Thanks for getting back to me so quickly. It is in the PayPal CSV report – there is a column for Item ID. The Item Title is populated with the event ticket type but the Item ID is left blank. Is there any way to pass anything into this column?

Thanks,
Penny


Josh

  • Support Staff

November 3, 2015 at 10:58 am

Hi Penny,

You can pass a custom field from the event into the PayPal Item ID. First you’ll need this code:

https://gist.github.com/joshfeck/84da7e1ba6bd4b772244

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

Then, when you add or edit an event, you add your item ID into the Custom fields box like this.


Penny

November 4, 2015 at 1:42 am

Hi Josh, thank you so much for such thorough and helpful assistance. I have just tested this and am able to pass an ID into the PayPal item ID with your code.

Very grateful!
Thanks,
Penny


Penny

November 4, 2015 at 1:49 am

Hi Josh, I’ve noticed that the PayPal item ID isn’t showing up on the EE CSV report, is the best thing to do add it as it as an Admin-Only question or have I made an error?

Many thanks, Penny


Josh

  • Support Staff

November 4, 2015 at 7:30 am

Hi Penny,

You haven’t made an error because the EE CSV report does not automatically include post meta fields. You can add your custom post meta fields to the CSV in a similar way that you added the field to the variables sent to PayPal. It’s another function that hooks to a filter hook that’s for altering the EE output. Here’s a link to a gist that shows an example how:

https://gist.github.com/joshfeck/4a7f576ea04a7d43be05#file-include_paypal_id_csv_example-php

The support post ‘PayPal Item ID (EE4, PayPal Standard)’ 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