For this functionality to work on the product archive page, you’ll need to disable “Enable AJAX add to basket buttons on archives” under WooCommerce > Settings > Products . General > Add to cart behaviour.
Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.
Need support with the snippet? We’re Here to Help You, Contact Us!
This quick guide shows you how you can redirect your customers to the checkout after they immediately add a product to their cart from the product archive page. This sort of process would be tailored only to a few stores where perhaps only one product can be bought at a time.
Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.