How to fix WooCommerce thankyou page “not found” 404 error

WooCommerce thankyou 404For some WooCommerce users, the order confirmation page, or thankyou page, gives a 404 page not found after updating WooCommerce or their WordPress theme.

Here is the most universal solution that will work for most sites:
Add this code to your theme’s functions.php:

function flush_rules(){

(Go to menu Appearance > Editor and find the file function.php in the right column.)

If this does not help, try to inactivate plugins one by one. It can also help to inactivate and reactivate WooCommerce.

Continues after this ▼

Good luck!


Worked professionally with Joomla! CMS since its birth in 2005. Today, I work more with WordPress, even though I'm following what happens in the Joomla world with much interest and still consider it a great CMS. Would love if you connect with me!

You may also like...

4 Responses

  1. Elessar says:

    flush_rules does work. You saved my day, many thanks.

  2. admin says:

    Glad I could help! Have a nice day!

  3. Anton says:

    Found this after trying several other methods. Adding the code works like a charm, thank you!

  4. admin says:

    Happy that I could help Anton

Leave a Reply

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