For SINGLE PRODUCTS– Skip Cart WooCommerce shopping cart altogether and send your buyers straight to the checkout page and Increase Conversions Instantly! The more steps you put your buyer through, the lower your conversions. Here are the 2 code snippets:
WooCommerce Skip Cart Code
This snippet allows the user to skip to the cart directly.
|
1 |
add_filter( 'woocommerce_add_to_cart_redirect', 'skip_woo_cart' ); function skip_woo_cart() { return wc_get_checkout_url(); } |
Change WooCommerce Add to Cart Button Text to BUY NOW!
|
1 |
add_filter( 'woocommerce_product_single_add_to_cart_text', 'cw_btntext_cart' ); add_filter( 'woocommerce_product_add_to_cart_text', 'cw_btntext_cart' ); function cw_btntext_cart() { return __( 'Go To Checkout', 'woocommerce' ); } |
Both snippet will work on WooCommerce 4 and newer.
Once you add these codes to your WooCommerce store, you’ll see that your customers will be redirected to the checkout once they click on the Buy Now button.