FunnelKit
FunnelKitBlogs

How to Set Up a Redirect After Checkout in WooCommerce: 3 Ways (No Code & PHP)

Updated:  Nov 10, 2026
Written by: 
Author: Editorial Team
Editorial Team
Author: Editorial Team Editorial Team

The FunnelKit Editorial Team is a group of WooCommerce experts with 10+ years of combined experience. We create actionable guides based on hands-on testing, industry research, and user feedback to help eCommerce businesses grow.

How to Set Up a Redirect After Checkout in WooCommerce: 3 Ways (No Code & PHP)

A WooCommerce redirect after checkout sends buyers to a page you choose once their order goes through, instead of the default Order Received page.

The default page only confirms the order. A custom destination gives buyers a useful next step, like setup help, a coupon for their next order, or a product that pairs with what they just bought.

In this blog, we'll share three ways to set it up: a no-code custom thank-you page with FunnelKit Funnel Builder, conditional rules that send different buyers to different pages, and a lightweight PHP snippet.

Short on time? Watch the video 👇

How to Set Up a Redirect After Checkout in WooCommerce: 3 Ways (No Code & PHP)

Where Can You Redirect Customers After Checkout?

After checkout, you can redirect customers to these pages:

  • Redirect to a custom thank you page

Direct customers to a personalized "Thank You" page where you can include extra information like shipping policies, social icons, user guides/videos, etc. Additionally, you can include exclusive offers for their next purchase. This encourages repeat business and keeps customers engaged with your brand.

  • Redirect to an upsell page

Instead of sending the users to the thank you page, you can cash in on the buying momentum by selling more items to the users with a one-click upsell. This way, users can add more items to their order with a single click without having to provide payment details a second time. This is an effective way to boost the average order value of your store.

  • Redirect to a custom link

If you work with partner companies, you might want to redirect customers to their sites after purchase to promote complementary products or services. Method 3 below covers this.

Which Page WooCommerce Redirects to After Checkout by Default?

By default, WooCommerce redirects customers to the Order Received page (also known as the "Thank You" page) after checkout.

To find the settings, go to WooCommerce ⇒ Settings ⇒ Advanced tab.

Under the Checkout endpoints section, you will see the assigned Order Received page, but the URL itself isn't editable from this menu.

WooCommerce default order received page redirect path

Here is the default thank you page WooCommerce redirects to after checkout:

WooCommerce default order received page after checkout

This page is very basic, and you don’t have the option to add any custom information to improve the customer experience.

Which Redirect Method Should You Use?

Pick the method that matches how much control you need:

MethodBest forCode needed
Method 1: Custom thank-you pageA branded page that still shows the order detailsNo
Method 2: Conditional rulesDifferent pages or upsells for different ordersNo
Method 3: PHP snippetOne fixed page or an external URL for every orderYes

Method 1: How to Redirect to a Custom Thank You Page After Checkout in WooCommerce

You can redirect users to a custom thank-you page after checkout using FunnelKit Funnel Builder.

It is a sales funnel builder for WordPress and WooCommerce that allows you to replace the default order confirmation page with a custom one.

Note: You can design the order confirmation page with any popular page builder, such as Elementor, Divi, Gutenberg, Bricks, Oxygen, etc.

Make sure you've installed and activated FunnelKit Funnel Builder.

Now follow these steps:

Step 1: Create a store checkout

The first step is to easily set up a checkout for your WooCommerce store.

From your WordPress dashboard, navigate to FunnelKit ⇒ Store Checkout and hit the "Create Store Checkout" button.

hit create store checkout

Select the template you like and hover over it to click on ‘Preview’.

Here, we are going with the Hific template.

select Hific template for store checkout

To import this template, which includes a checkout page and a thank-you page, first select the checkout page steps. Then hit Import This Funnel, provide a name, and hit Done.

import hific as store checkout in WooCommerce store

Note: In this blog, we will share the process of customizing the thank you template to create a custom one. You can follow these blogs for the checkout page customizations.

Step 2: Customize the thank you page

To edit the order confirmation page, click the "Thank You" page step.

hit thank you page

Then, hit “Edit Template” to start the customization.

hit edit template for thank you

You can change every part of this template and add/remove any part. First, let’s customize the existing content one by one.

change logo thank you page

Then customize the order confirmation message. You can use the shortcode “[wfty_customer_email]” to dynamically embed the customer email.

thank you page heading text

As per the customer details section, you can change the heading and structure.

customize customer details

For the order details, you can change the heading. If you offer subscriptions for downloadable products, you have the flexibility to customize various options to suit your needs.

customize order details

For the special offer section, you can customize the texts to set your offer.

customize special offer

Along with template options, you can also add other new sections, like here we have added a social icon section and a helpful video section.

add social icon and video

You can add more sections as well, depending on your needs.

After making the changes, make sure to save the custom thank you template.

Step 3: Activate the store checkout with custom thank you page

The final step is to enable the store checkout. For this, just hit the “Enable store checkout”.

enable store checkout for custom redirect in WooCommerce

That’s it. Now your WooCommerce store will redirect customers to this beautiful custom thank-you page you just built after checkout.

Here is a preview of the thank-you page we just designed:

Custom WooCommerce thank-you page with upsell and exclusive offers

How to Redirect to a One-Click Upsell Page After Checkout in WooCommerce To Boost Average Order Value

Before redirecting to the custom thank you page, you can offer a one-click upsell to boost the order value.

With FunnelKit Funnel Builder, you can easily offer a one-click upsell. You can set up multiple upsells and offer them as a downsell if a user rejects the first upsell.

To use this one-click upsell feature, you must install and activate the pro version of FunnelKit Funnel Builder.

Once you've activated the plugin, follow these steps:

Note: This section builds on the previous step. Before proceeding, ensure you’ve replaced your default checkout with the store checkout using FunnelKit Funnel Builder.

Step 1: Create a one-click upsell step

To create an upsell step, first hit the button “Add New Step”.

hit add one click upsell for custom redirect

Next, choose the option “One Click Upsell Offers," then the page builder. After that, hover on the template you like and hit Preview.

choose one click upsells template

Next, hit “Import This Template," provide an upsell name and offer name, and hit Add.

import upsell template to set up WooCommerce upsell after checkout for increased conversion

Step 2: Add the upsell offer

Now, drag and drop the upsell offer to place it before the thank you page.

Click on the new offer you just created.

select tshirt

Move to the Products tab, hit “Add Product," search and add the product, and hit Add.

add product as upsell offer

Make sure to check the option “Skip this offer if the product(s) exist in parent order” in product selection settings and hit Save to update.

Step 3: Add a downsell offer (optional)

In case customers reject the first offer, you can add another upsell. To do this, add a new offer.

select hoodie

Then, as a downsell, add the product you want to offer.

add product to upsell

After checkout, your customers will now see the upsell offers.

first upsell

Users will receive the second upsell offer if they decline the initial offer.

second upsell or downsell

After accepting or rejecting the upsell offers, a custom thank-you page will appear.

The thank you page will present all the order details, including the accepted upsell offers.

thank you page preview

Method 2: Redirect to Different Pages With Conditional Rules

You can also apply different conditions to your thank-you pages and upsell offers.

For instance, send users to a different thank-you page if the customer purchases from a certain category or a certain order total.

To set a rule, go to the thank you page and select the Rules tab. Click on the Add Rules button.

Add rules to thank you page

To set conditions for your upsell offers, select the upsell option and open its Rules tab.

hit upsell

Choose a parameter based on your strategy, and then set the condition. You can add multiple rules according to your strategy. Don’t forget to save the changes.

How to Redirect Based on Order Total After WooCommerce Checkout

In this scenario, we have established a condition that directs customers who purchase products worth $200 or more to this thank-you page.

conditional thank you page for order total, WooCommerce thank-you page redirect customization in settings

For more details on how to set a conditional thank-you page, you can read our blog on “Order confirmation page”.

How to Redirect Based on Specific Product or Category After WooCommerce Checkout

Want to send customers to a specific page based on the product they purchased?

This is a great way to offer relevant upsells, product-specific landing pages, or personalized thank-you experiences.

For example, if someone buys a fitness supplement, you can redirect them to a page promoting a complementary workout guide.

Set the condition that 'Product' contains at least 'Your Product Name'. You can set the product quantity if needed.

How to Redirect Based on Product After WooCommerce Checkout

You can also target a product category. For example, we have implemented a rule that limits the display of this upsell offer to customers who have purchased clothing.

Since our upsells are also in the clothing category, the offer is highly relevant, increasing the likelihood that users will accept it.

WooCommerce setup for adding rules to upsell offers based on conditions. Show upsell for different product category

How to Redirect Based on Payment Method After WooCommerce Checkout

You can set up a redirect after checkout based on the payment method.

For example, if you want to offer an upsell only when a customer completes the main purchase by credit card, you can do so easily with FunnelKit Funnel Builder.

To set it up, go to Upsells, then open the Rules tab. Set the condition that 'Payment Gateway' is 'Credit Card' (Stripe).

How to Redirect Based on Payment Method After WooCommerce Checkout

Similarly, for the thank-you page you want to display for a Credit Card, go to that thank-you page and, on the rules tab, add the condition 'Payment Gateway' equals 'Credit Card' (Stripe).

Redirecting WooCommerce customers after checkout based on payment method

This is how you can set up a custom redirect after checkout based on payment method in WooCommerce.

How to Redirect Based on Country After WooCommerce Checkout

If you run a multi-region store, you can redirect customers to a localized page based on their billing/shipping country. This is ideal for directing buyers to region-specific landing pages, localized offers, or language-specific content.

For example, redirect US buyers to your US thank-you page and Canadian buyers to your Canadian thank-you page, each showing relevant shipping details.

Set the condition to 'Shipping Country' matched any of 'Your Target Country'.

You can use the billing country if needed for your use case.

How to Redirect Based on Country After WooCommerce Checkout

Method 3: Redirect After Checkout With a PHP Snippet

If every order should go to the same page or an external URL, a short snippet does the job. Add it with the Code Snippets plugin or your child theme's functions.php file, and test it on a staging site first.

add_action( 'template_redirect', 'fk_redirect_after_checkout' );

function fk_redirect_after_checkout() {
    // Run only on the Order Received page.
    if ( ! function_exists( 'is_wc_endpoint_url' ) || ! is_wc_endpoint_url( 'order-received' ) ) {
        return;
    }

    $order = wc_get_order( absint( get_query_var( 'order-received' ) ) );

    // Skip missing or failed orders so buyers can retry payment.
    if ( ! $order || $order->has_status( 'failed' ) ) {
        return;
    }

    // Only redirect the buyer who placed the order.
    $key = isset( $_GET['key'] ) ? wc_clean( wp_unslash( $_GET['key'] ) ) : '';
    if ( ! hash_equals( $order->get_order_key(), $key ) ) {
        return;
    }

    // Change /thank-you/ to your page slug.
    wp_safe_redirect( home_url( '/thank-you/' ) );
    exit;
}

The snippet uses the template_redirect hook rather than woocommerce_thankyou, which many tutorials suggest. woocommerce_thankyou runs after the page has started loading, so a redirect from it can fail with a "headers already sent" error.

To send buyers to another site, replace the redirect line with wp_redirect( 'https://example.com/' ). wp_safe_redirect only allows your own domain and sends any other address to your WordPress admin URL instead.

Keep in mind that the new page won't show order details unless you build that in. If buyers need their order summary, Method 1 keeps it on the page.

Prefer not to touch code for a single redirect? The free Redirect after payment for WooCommerce plugin lets you set the destination with a URL or page ID.

What to Check Before You Turn On a Redirect

A redirect changes the last step of every order, so run through these checks before going live:

  • Purchase tracking: many analytics and ad pixel setups record sales on the Order Received page. If buyers leave it right away, confirm your purchase events still fire.
  • Off-site gateways: PayPal and similar gateways send buyers back to WooCommerce first, so the redirect only kicks in after they return.
  • Unpaid order statuses: decide whether on-hold orders, like bank transfers, should redirect too, since the buyer hasn't paid yet.
  • Test orders: place a test order with each payment method you offer, on mobile and while logged out, on whichever checkout your store uses (block or classic).

More Questions About Custom WooCommerce Redirect After Checkout

What's the difference between a redirect to checkout and a redirect after checkout?

A redirect to checkout happens before payment. It sends shoppers from the product page or add to cart button straight to checkout, skipping the cart. A redirect after checkout happens once the order is placed and controls where buyers land next.

Why isn't my WooCommerce redirect after checkout working?

The usual causes are a snippet on the woocommerce_thankyou hook, two plugins both trying to change the thank-you page, or a cached checkout page. Use one redirect method at a time, exclude checkout pages from caching, and place a fresh test order.

Will customers still get the order confirmation email?

Yes. WooCommerce sends order emails based on the order status, not the page buyers see, so a redirect doesn't stop them.

Ready to Redirect Smarter After Checkout in WooCommerce?

For a branded page that keeps the order summary, start with a custom thank-you page. Add a one-click upsell before it to raise order value, and use rules when different buyers need different pages.

If you only need one fixed destination, the PHP snippet is the lightest option.

Start optimizing your customer journey with FunnelKit Funnel Builder today.

Related Blogs
woocommerce checkout validation - FunnelKit

Editorial Team

WooCommerce Checkout Validation: Plugin and Code Methods

WooCommerce checkout validation is essential for ensuring a smooth order process and efficient order management.  It reduces errors, improves customer satisfaction, and boosts conversion rates, ensuring a seamless experience for...

WooCommerce checkout coupon banner showing a coupon field being moved within a checkout page

Editorial Team

WooCommerce Checkout Coupon: How to Add, Move, or Hide the Coupon Field

The WooCommerce checkout coupon field is where shoppers enter a discount code before they pay. Once coupons are turned on, WooCommerce adds it to both the cart and the checkout...

remove checkout fields woocommerce - FunnelKit

Editorial Team

How to Remove WooCommerce Checkout Fields (Block & Classic)

Removing checkout fields in WooCommerce is one of the fastest ways to simplify your store’s checkout and reduce cart abandonment. Every extra field you ask customers to fill in adds...

Published by: Editorial Team
The Editorial Team at FunnelKit (formerly WooFunnels) is a passionate group of writers and copy editors. We create well-researched posts on topics such as WordPress automation, sales funnels, online course creation, and more. We aim to deliver content that is interesting and actionable.
Thank you for reading. Stay connected with us on the Facebook group, X (Twitter), LinkedIn and YouTube channel for more tips to help grow your business.
Join Over 40,300+ Sellers Increasing Profits with FunnelKit! 🚀
Join FunnelKit
FunnelKit Checkout gives you beautiful, ready-to-use WooCommerce checkout templates, embed order forms, one-page checkouts, and more.
Join FunnelKit
Related Blogs
woocommerce checkout validation - FunnelKit

Editorial Team

WooCommerce Checkout Validation: Plugin and Code Methods

WooCommerce checkout validation is essential for ensuring a smooth order process and efficient order management.  It reduces errors, improves customer satisfaction, and boosts conversion rates, ensuring a seamless experience for...

WooCommerce checkout coupon banner showing a coupon field being moved within a checkout page

Editorial Team

WooCommerce Checkout Coupon: How to Add, Move, or Hide the Coupon Field

The WooCommerce checkout coupon field is where shoppers enter a discount code before they pay. Once coupons are turned on, WooCommerce adds it to both the cart and the checkout...

remove checkout fields woocommerce - FunnelKit

Editorial Team

How to Remove WooCommerce Checkout Fields (Block & Classic)

Removing checkout fields in WooCommerce is one of the fastest ways to simplify your store’s checkout and reduce cart abandonment. Every extra field you ask customers to fill in adds...

Ready to Transform Your Store?
Join 40,300+ successful store owners who trust FunnelKit to power their businesses.
Conversion Optimized Checkout Pages
Increase Revenue with Smart Upsells
Capture Emails & Recover Abandoned Carts
Automate Winbacks & Repeat Sales
1009+ 5 star reviews on WordPress.org
Transform your store to power your business with FunnelKit
🚀 Maximize Your Profit with FunnelKit – Highest Rated with 1009+ 5-Star Reviews
Get Started