WooCommerce Redirect Add to Cart button or Product Image link to Checkout page on Shop/Category Pages for Simple

When add to cart button is clicked Woocommerce by default redirect users Cart page. When Product image is clicked it goes to product details page. But if you want to redirect user to checkout page whenever visitor clicks on add to cart button or product image link, this tutorial will help you to achieve it.

In order to implement this feature follow these 3 steps.

Step 1: Product Display Options
Go to WooCommerce -> Settings -> Products -> Display Screen.
As indicated in the below screenshot, set “Add to Cart behaviour” to “Redirect to the Cart Page after successfully addition.

Mina Pansuriya - WooCommerce - Product Display Option

Step 2: Checkout Option Settings
Go to WooCommerce -> Settings -> Checkout -> Checkout Option Screen.
As given in the below screenshot, select Checkout page for Cart Page settings.

Step 3: Add Code Snippet
Copy & Paste this code snippet in the functions.php file of your child theme folder!

1 thought on “WooCommerce Redirect Add to Cart button or Product Image link to Checkout page on Shop/Category Pages for Simple”

Leave a Reply

Your email address will not be published.