02
December
2021
At times we may want customers to skip the cart process and head directly to the checkout page after adding a product to the cart. In this video I will run through how to accomplish this using 2 different methods.
1) Using a PHP function.
2) Using our WooCommerce Skip Cart PRO plugin
Needed Function Code:
1 2 3 4 5 6 7 8 9 10 | <?php // Your PHP code goes here! add_filter('add_to_cart_redirect', 'handsomeWP_skip_cart_page'); function handsomeWP_skip_cart_page () { global $woocommerce; $redirect_checkout = $woocommerce->cart->get_checkout_url(); return $redirect_checkout; } |
or request our WooCommerce Skip Cart Pro plugin.
Leave a Reply