Support

Home Forums Event Espresso Premium Site Specific plugin with code snippets are not making changes at all.

Site Specific plugin with code snippets are not making changes at all.

Posted: August 11, 2014 at 12:58 pm


Mariela Parra

August 11, 2014 at 12:58 pm

Hi, I created a plugin for Event Espresso. I follow all instructions to change the wording for Paypal but changes didn’t take effect.

Event Espresso Version 4.2.9.p New installation
Event Espresso – Calendar Version 3.0.0.reg
Wordpress 3.9.1

Website: http://flixeh.com/la_habana_sin_tacones_en_canada/

This is what I have in my plugins’ Editor.
====
<?php
/*
Plugin Name: Site plugin for Espresso
Description: Site specific code for Event Espresso
*/
/* Begin Adding Functions Below This Line */

function ee_payment_options_paypal_optional( $translated, $original, $domain ) {
$strings = array(
‘After finalizing your registration, you will be transferred to the PayPal.com website where your payment will be securely processed.’ => ‘After finalizing your registration, you will be transferred to the PayPal.com website where your payment will be securely processed. A PayPal account is not required and you can pay with a credit or debit card.’
);
if ( isset( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}

add_filter( ‘gettext’, ‘ee_payment_options_paypal_optional’, 10, 3 );

function ee_register_now_button() {
return ‘Next’;
}

add_filter (‘FHEE__EE_Ticket_Selector__display_ticket_selector_submit__btn_text’, ‘ee_register_now_button’);

/* Stop Adding Functions */
====

What Am I doing wrong?

Thanks,

Mariela


Dean

August 12, 2014 at 1:33 am

Hi,

I added your code to my own custom functions plugin and barring having to add in a strong HTML tag to the text it worked just fine: http://take.ms/F1cFx

Code used: http://take.ms/ZU0Q3


Mariela Parra

August 13, 2014 at 11:11 pm

Dean,

Any possible ideas of why it is not working on my page?

Mariela


Dean

August 14, 2014 at 3:39 am

Not sure, is it possible to get your login details in order to look into this?

If so, please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level and FTP details are appreciated.


Dean

August 14, 2014 at 8:54 am

Hi,

Thanks for the login details. I activated the custom plugin and it’s working now: http://take.ms/g8jgI (screenshot)


Mariela Parra

August 14, 2014 at 11:00 am

Thanks Dean!

Why I still can see “Select other method of payment” link when the only option is Paypal?


Lorenzo Orlando Caum

  • Support Staff

August 14, 2014 at 12:55 pm

Hello,

That is a feature that we are looking to introduce in a future version of Event Espresso 4.


Lorenzo

The support post ‘Site Specific plugin with code snippets are not making changes at all.’ 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