Support

Home Forums Event Espresso Premium EE4 Hiding payment option selection when only one option available

EE4 Hiding payment option selection when only one option available

Posted: July 29, 2014 at 3:14 pm


Mike Compton

July 29, 2014 at 3:14 pm

I only use PayPal Standard for my payments. I would like to hide the payments option. I’ve searched the post https://eventespresso.com/topic/hiding-payment-option-selection-when-only-one-option-available/ there is a suggestion to use a script.


jQuery(document).ready(function() {
	jQuery('#spco-go-to-step-payment_options-btn').click(function() {
		if (jQuery('.reg-page-payment-option-dv').length == 1) {
			setTimeout(function(){jQuery('.reg-page-payment-option-dv').click();}, 2000);
		}
	});
});

I don’t know where to put this code or if it is still needed
I’m running EE 4.2.9p
example registration page: http://www.touchdownclubofathens.com/1st-meeting-coach-mark-ritch/

Thanks a lot


Dean

July 30, 2014 at 3:49 am

Hi,

It is still currently needed, though it should appear in future versions.

For now I made the code above into a small plugin that might be of assistance.

https://gist.github.com/Apina/859114d98ef18b77bd32


Mike Compton

July 30, 2014 at 7:20 am

thanks that helps a lot!

The support post ‘EE4 Hiding payment option selection when only one option available’ 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