Support

Home Forums Event Espresso Premium Paypal invoice display the wrong promo name

Paypal invoice display the wrong promo name

Posted: April 3, 2018 at 8:10 am


Nodal

April 3, 2018 at 8:10 am

Hi,
I use the promotion add-on for my events. When my client uses a promo code, Paypal always displays the right amount of discount, but always for the same event. It displays the name of the first event I created in event espresso. It says: “Discount 4$ for Soyez l’expert de votre bébé !-Gatineau”. Paypal display always the same event name, but I used many discount code for many events.
Thanks


Tony

  • Support Staff

April 3, 2018 at 9:48 am

Hi there,

Which PayPal payment method are you using?


Nodal

April 3, 2018 at 10:29 am

PayPal express


Tony

  • Support Staff

April 4, 2018 at 6:04 am

On your site do you have any translations that translate ‘Unknown’ to ‘Soyez l’expert de votre bébé !-Gatineau’?

This could be within the PO/MO files, or using a custom function as shown here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function

Currently, the promotion line item should actually show up as ‘Discount 4$ for Unknown’, which I’ll create a ticket for, on your site I think you are either translating ‘Unknown’ into an event name or using the FHEE__EE_gateway___line_item_name filter to change the line item name to include an event name.


Nodal

April 4, 2018 at 6:53 am

Hi,
I did use custom plugin with this code:
<?php
/*
Plugin Name: personnalisation
Description: Site specific code for melanie-bilodeau.com
*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */
add_filter( 'FHEE__EEH_Template__format_currency__display_code', '__return_false' );
add_action( 'FHEE__ticket_selector_chart_template__per_ticket_bundle_text', 'ee_custom_messaging_per_ticket_bundle_text' );
function ee_custom_messaging_per_ticket_bundle_text() {

return ' Total.';
}
/* Stop Adding Functions */

In the po/mo file, I do have those translations for ‘Unknown’:
“(unknown)” to “Non identifié”
unknown to inconnu
__Unknown__ to __Inconnu__
Nothing that translates to ‘Soyez l’expert de votre bébé !-Gatineau’.


Tony

  • Support Staff

April 4, 2018 at 7:27 am

Is that the only custom code you are running?

What about any translations for %1$s for %2$s?


Nodal

April 4, 2018 at 8:34 am

Yes, it is the only custom code I use for Event Espresso.

All the translation for %1$s for %2$s look okay. It did had some mistake (the translation putted space between like “% 1 $”) but nothing about discount. I did the correction.
Any other idea why I do have this problem ?


Tony

  • Support Staff

April 4, 2018 at 9:02 am

Can I take a quick look in the admin? I want to confirm exactly how this is set up but rather than run through each individual setting its much quicker to look.

If so you can use this form to send the details:

https://eventespresso.com/send-login-details/

I’ll need to know which promotion code and event you are testing so I can see.


Tony

  • Support Staff

April 4, 2018 at 10:08 am

Actually, scratch that, it looks like this happens with global promotions.

We have a ticket for our developers to investigate this further.


Nodal

April 4, 2018 at 10:39 am

Thanks !

And I did send you the details.

The support post ‘Paypal invoice display the wrong promo name’ 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.

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: closed

Updated by  Nodal 8 months, 2 weeks ago ago

Topic Tags

Notifications

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