How to Redirect Users to a Custom Thank You Page?

I believe this is the wrong question – and in a moment I will explain you why.

The right question to ask should be: “Is it a good idea to redirect WooCommerce customers to a custom thank you page?”. And the correct answer is: “No”.

Why you shouldn’t redirect to a custom thank you page

There are two main reasons for this.

Unless you’re an expert coder, redirecting to a custom thank you page (here’s a snippet to achieve WooCommerce redirection upon purchase by the way) will mean losing the order details summary.

In plain English, your custom thank you page will not display the WooCommerce order details. Unless you code this, of course.

Second, most tracking and reporting within WooCommerce, Google Analytics, and other WooCommerce integrations only work on the default thank you page. In plain English, if you redirect to a custom URL, the conversion will not be recorded into Google Analytics if you use the recommended WooCommerce Google Analytics plugin.

What should you do instead

The WooCommerce default thank you page can be customized via PHP (if you’re not a developer you can hire someone to do this for you).

In plain English, the thank you page can display conditional content based on the product/s purchased (for example, a banner, a survey, a specific download), you can remove or reposition default elements, you can add social share buttons or a lovely thank you note.

If you see what I mean, it’s better to keep the default thank you page and customize it, as opposed to redirect to a custom URL where you’d lose order details, tracking and create more confusion. In fact, to what page would you redirect if there were 2 different products with 2 different thank you pages in the order?

Rodolfo Melogli

Author, WooCommerce expert, WordCamp speaker and Internet marketer, Rodolfo Melogli has worked as a WooCommerce freelancer since 2011. He helps entrepreneurs and developers overcome their WooCommerce nightmares :) Rodolfo is the organiser of WordCamp Dublin, the Dublin WooCommerce Meetup, the Dublin Ecommerce Meetup and the Dublin WordPress Meetup. He enjoys interacting with people, travelling and chasing tennis & soccer balls. Of course, he loves pizza too.

6 thoughts on “How to Redirect Users to a Custom Thank You Page?

  1. Hi Rodolfo,
    a question for you … at site am using bank payment and plugin for it. All is fine but last step makes me trouble for a days…namely its about when customer on bank page decide to simply cancel order before its confirmed or lets say card is moneyless and transaction cant be make… in this case site is making me back to thank you page but title is that order has been successefuly made and order is accepted… it makes confusion between customers and i really have no idea how to fix it. In plugin i am using there is a place where to enter postback url in case i need it and i put mysite.co.rs/checkout/order-received/{order_id}/? but result is same or i got empty page… Any idea how to resolve it? Thanks in advance

    1. Hello Sofija, thanks so much for your comment! Unfortunately this looks like custom troubleshooting work and I cannot help here via the blog comments. Thanks a lot for your understanding! ~R

  2. Hi,

    Maybe you can help me.

    Thank you page doesn’t show the shipping address, I will like not only the billing address to show. How I can fix this?

    Thanks

    Best regards

    Adriana

    1. Hello Adriana, thanks so much for your comment! Unfortunately this looks like custom troubleshooting work and I cannot help here via the blog comments. Thanks a lot for your understanding! ~R

  3. “In plain English, the thank you page can display conditional content based on the product/s purchased (for example, a banner, a survey, a specific download), you can remove or reposition default elements, you can add social share buttons or a lovely thank you note.”

    Do you have a tutorial on this? I’d like to display an embeddable booking form (not a shortcode) when a customer purchases certain products.

    1. Mike, thanks so much for your comment! Yes, this is possible – but unfortunately this is custom work and I cannot provide a complementary solution here via the blog comments. Thanks a lot for your understanding! ~R

Questions? Feedback? Support? Leave your Comment Now!
_____
If you are writing code, please wrap it between: [php]code_here[/php]. Failure to complying with this (as well as going off topic) will result in comment deletion. You should expect a reply in about a week - this is a popular blog but I need to get paid work done first. Please consider joining #BloomerArmada to ask me 1-to-1 WooCommerce questions. Thank you :)
¯¯¯¯¯

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.