lmartins
11/25/2014 - 10:39 PM

Skip the Cart in the checkout process

Skip the Cart in the checkout process

/**
 * Skip the Cart
 * @see: http://stackoverflow.com/questions/15592633/woocommerce-add-to-cart-button-redirect-to-checkout
 */
 
add_filter( 'add_to_cart_redirect', 'redirect_to_checkout' );
 
function redirect_to_checkout() {
	global $woocommerce;
	$checkout_url = $woocommerce->cart->get_checkout_url();
 
	return $checkout_url;
}