WooCommerce Add to Cart Redirect to Checkout
If you need to redirect the user directly to the checkout page instead of the current product page or cart page, put this snippet to your themes functions.php. [php] /** * Redirect user to checkout page directly after adding to cart * * @return string */ function wc_redirect_to_checkout() { $checkout_url = WC()->cart->get_checkout_url(); return $checkout_url; } … Continue reading WooCommerce Add to Cart Redirect to Checkout