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
Edit PayPal | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Edit PayPal

Edit PayPal

Posted: March 27, 2014 at 7:45 am

Viewing 7 reply threads


Melanie Levitt

March 27, 2014 at 7:45 am

There is a perennial confusion that people need a paypal account to use paypal so they feel they can’t use a credit card – is there a way to edit the message that event espresso gives during the payment process to add a message with the paypal link? Where it says please choose a payment option? Thanks as example…
http://www.jacksonartnh.com/thank-you/?r_id=36-533428c984846


Lorenzo Orlando Caum

  • Support Staff

March 27, 2014 at 8:07 am

Hello,

I’m trying to reach your payment page so I can share an example but your event registration page is only showing a shortcode:

http://www.jacksonartnh.com/event-registration/

Do you have multiple WordPress pages with the following shortcode?

[ESPRESSO_EVENTS]

If so, could you remove the extra shortcodes so only one WP page has the shortcode above?


Lorenzo


Melanie Levitt

March 27, 2014 at 8:47 am

Yes there were two pages with that shortcode – we have fixed this now there is only one.


Melanie Levitt

March 27, 2014 at 2:33 pm

Please let me know if I can edit the paypal payment page and where to edit the pdf as it is showing some html brackets.


Lorenzo Orlando Caum

  • Support Staff

March 27, 2014 at 6:30 pm

Hello Melanie,

Thank you for correcting the shortcode.

Please void “test test” as I needed to begin registration to reach the payment page.

I don’t think there is an easy method to add the note next to the PayPal button but I do see another location that should be available.

Please see this link:

http://staging.eventespresso.com/wiki/how-to-change-wording-with-poedit/#plugins

There are two options but I would try the quick localization plugin first.

In the old field enter:

Your registration is not complete until payment is received.

In the new field enter:

Your registration is not complete until payment is received. Note: A PayPal account is not needed to pay via PayPal. You can use an existing PayPal account or pay with a debit or credit card.

Let me know if this works for you.


Lorenzo


Melanie Levitt

March 27, 2014 at 7:46 pm

It didn’t seem to have any impact at all :-(


Lorenzo Orlando Caum

  • Support Staff

March 27, 2014 at 7:53 pm

Go ahead and deactivate the localization plugin.

Try adding this towards the middle of your theme’s functions.php file (wp-content/themes/yourthemefolder/functions.php):

function paypal_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Your registration is not complete until payment is received.' => 'Your registration is not complete until payment is received. Note: A PayPal account is not needed to pay via PayPal. You can use an existing PayPal account or pay with a debit or credit card.',
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = &get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'paypal_filter_gettext', 10, 3 );


Lorenzo


Melanie Levitt

March 28, 2014 at 8:51 am

That did fix the yellow box – thank you – my dangling question is there a place to change this text?
Pending Payment
Would you like to choose a different payment option?


Lorenzo Orlando Caum

  • Support Staff

March 28, 2014 at 12:34 pm

The quick localization plugin doesn’t work for that text?

Try this:

function paymentoption_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Would you like to choose a different payment option?' => 'Please change this statement to something else',
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = &get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'paymentoption_filter_gettext', 10, 3 );


Lorenzo

Viewing 7 reply threads

The support post ‘Edit PayPal’ 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