Support

Home Forums Event Espresso Premium Easier Flow for Multiple Events Registration Reply To: Easier Flow for Multiple Events Registration

Reply To: Easier Flow for Multiple Events Registration

Author Replies
Josh # Posted on May 3, 2018 at 3:24 pm

You can remove this:

add_filter( 
    'FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url', 
    '__return_false' 
);

and replace with this:

add_filter( 
    'FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url', 
    'my_custom_url_change_for_cart' 
);
function my_custom_url_change_for_cart( $url ) {
    if(isset($_REQUEST['uts'])){
        $url = get_post_type_archive_link( 'espresso_events' );
    } else {
        $url = '';
    }
    return $url;
}

and that will conditionally change the URL for the Add more button depending on whether you’re on the cart page or not.

notice that the “1”event you just added to cart still says “quantity 0” beside it so they might get confused and try and add another event

The 0 you see there is not a count of registrations, it’s actually a quantity selector. So if that gets changed to anything other than a 0 there, it will add more tickets to their cart.

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