Support

Home Forums Event Espresso Premium Table View with ticket selector and checkout button Reply To: Table View with ticket selector and checkout button

Reply To: Table View with ticket selector and checkout button

Author Replies
Josh # Posted on May 15, 2018 at 1:31 pm

You can add the following code to a site specific plugin:

function ee_custom_mer_radio_button_clear() {
    wp_add_inline_script( 
        'espresso_multi_event_registration',
        'jQuery( document ).one( "ajaxStop", function() {
            jQuery( ".ticket-selector-tbl-qty-slct" ).each( function() {
                jQuery( this ).prop( "checked", false );
            });
        });'
    );
}
add_action( 'wp_enqueue_scripts', 'ee_custom_mer_radio_button_clear', 11 );

and that will clear the radio button that’s selected after adding to the cart, and avoid the error you saw.

Here’s a link to the documentation on how to add a site specific plugin:

http://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

The reason we recommend the site specific plugin instead of adding code directly in the functions.php of your theme is because this way you’ll keep better track of where your customizations are. This avoids having to go hunting for them later when they need to be updated.

Do NOT follow this link or you will be banned from the site!