Support

Home Forums Event Espresso Premium Remove "Please choose a payment option"

Remove "Please choose a payment option"

Posted: August 28, 2018 at 11:35 am

Viewing 6 reply threads


Steve Huang

August 28, 2018 at 11:35 am

I have just updated my event espresso to the most current version, which uses Bambora instead of Beanstream, since Beanstream was bought by Bambora.

Before this update, I had some customization in the older version based on suggestion from the support staff.

Since I have only one payment option, so I do not wish the payment form header says “Please choose a payment option”. So I have added the following code to my theme’s functions.php file:

add_action( ‘wp_print_scripts’, ‘my_no_ee_paybutton_hideform’, 100 );

function my_no_ee_paybutton_hideform() {
wp_deregister_script( ‘espresso_payment_page’ );
}

which remove the header “Please choose a payment option”.

Now with the update, this header is appearing on the payment form again. I checked my theme’s functions.php file, it still has the above code there. I guess with the update, something else is changed, so above code would not do that job anymore.

Could you please help me with a new piece code to accomplish same as above within the new most recent version?

Also, ideally, if possible, maybe remove the picture button of “Beanstream Electronic Payment Processing” too?

Thank you very much.

Steve


Tony

  • Support Staff

August 28, 2018 at 12:06 pm

Hi Steve,

Rather than removing scripts, would it not work to just hide those sections with CSS?

Adding something like this:

#payment-options-dv h2.section-heading {
    display: none;
}
#beanstream-payment-option-lnk {
    display: none;
}

To Appearance -> Customize -> Additional CSS, will remove the sections you referred to above.


Steve Huang

August 28, 2018 at 12:56 pm

Hi Tony,

Thanks for your response.

I entered it in as per instruction, but I still see the heading “Please choose a payment option” and the Beanstream picture button.

What could block it from working?

Steve


Josh

  • Support Staff

August 28, 2018 at 3:49 pm

Hi Steve,

It appears that the custom CSS was added to a location where it’s effectively commented out, or disabled:

https://slack-files.com/T02SY781D-FCGD9CTUH-7fbc784e18

If you can move the CSS just past the closing */ in the CSS editor it will be able to do its thing.


Steve Huang

August 28, 2018 at 4:04 pm

Hi Josh,

Thank you so much. It works.

So with this in place, I can remove the old code (see below) I added to my theme’s functions.php file?

add_action( ‘wp_print_scripts’, ‘my_no_ee_paybutton_hideform’, 100 );

function my_no_ee_paybutton_hideform() {
wp_deregister_script( ‘espresso_payment_page’ );
}

Steve


Josh

  • Support Staff

August 28, 2018 at 4:10 pm

Yes you can remove that other code if you’d like.


Steve Huang

August 28, 2018 at 4:11 pm

Hi Josh,

Thank you very much for the quick response. I really appreciated it.

Steve

Viewing 6 reply threads

The support post ‘Remove "Please choose a payment option"’ 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