25% off ProSNIPC25OFF

Redirect to Checkout After Adding to Cart

Redirects customers directly to the checkout page after they add any product to the cart, reducing funnel steps for stores with a single-product or impulse-buy focus.

PHPby SnipCraft
php
<?php
if ( ! class_exists( 'WooCommerce' ) ) {
    return;
}

add_filter( 'woocommerce_add_to_cart_redirect', 'scseed_redirect_to_checkout' );
function scseed_redirect_to_checkout() {
    return wc_get_checkout_url();
}
#cart#checkout#conversion#redirect#woocommerce