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

For 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(){ flush_rewrite_rules(); } add_action(‘init’,’flush_rules’); (Go to...