Please add these below codes into your theme functions.php file and save

remove_filter (‘woocommerce_add_to_cart_redirect’, ‘mep_event_redirect_to_checkout’);
add_filter (‘woocommerce_add_to_cart_redirect’, ‘mep_event_redirect_to_cart’);
function mep_event_redirect_to_cart() {
global $woocommerce;
$checkout_url = $woocommerce->cart->get_cart_url();
return $checkout_url;
}


« Back to the Knowledgebase