Support » Plugin: WooCommerce » Order confirmation page not found

Viewing 12 replies - 1 through 12 (of 12 total)
  • I should add – my store’s permalinks are set up like so:

    All shop pages and their sub pages are linking fine. However, when a customer finishes checkout the url they get (and this setting off a 404 page) is:

    (obviously I made up those numbers, but that’s the general idea).

    If I take that incorrect URL, and add “shop/”just before “checkout”, then hit enter, I can actually see that transaction’s confirmation page just fine.

    If I enter just, it automatically prepends “shop/” before cart and shows me the correct page. Same with It seems when it’s time to show the checkout confirmation/Thank You page, the confirmation page’s URL is not adjusting accordingly. It remains with the incorrect

    For now I’ve set my 404 page to redirect to the homepage, but it would be most helpful to find a solution for why my shop permalinks aren’t being followed at the very end of checkout.

    I have the same issue..
    Anyone can help?

    I figured it was a problem with my checkout add-on for Woocommerce not providing the proper URL path when a customer finishes checkout on the secured page. Part of the index.php file for that checkout add-on goes:

    $redirect_url = get_site_url().'/checkout/order-received/'.$order->id.'/?key='.$order->order_key;

    Since my shop’s permalink structures goes /shop/whathaveyou/etc I guess when customers finished checkout and redirected them back to my site, the plugin printed the URL as instead of

    I edited that core file in my index.php for this Woocommerce add-on, now just waiting to see how that affects checkout.

    In short: it may not be the core Woocommerce plugin causing me problems, but the payment gateway add-on I’m using for customer checkout.

    hey, I Added this code to function.php in the theme root folder and it seems to work to me. Try you too.

    function flush_rules(){

    Oh dear god, pandosia you are the freakin man, that totally worked for me! Thank you so much.

    FYI put that into your function.php and load your page, you CANNOT remove the code after. Stupid permalinks saving isnt doing what this did so i hope this gets fixed in a more permanent solution. please let me know if the cause is tracked down!

    pandosia, you’re a god among humans.

    @pandosia! it worked 🙂

    I was asked to look into a site and it was having a similar problem. If I put through an order I got a 404. If I manually created a version of the page and then put through an order I would get a redirect loop.

    After searching extensively I eventually got to this. @pandosia‘s comment solved the problem.

    How? Why is this hack necessary?


    thank You!!!!

    Just tried Pandosia’s fix, still get this message when I click “Place my order”
    POST 500 (Internal Server Error)

    Hi coolhatwebdesign,

    Thank You, I had the same problem, I am using Payumoney payment gateway, after successfull transaction, the payment g/w was not redirecting to ‘order-recieved’ page.
    As suggested by you, i did the changes in the core file to redirect the page link and now its working superb 🙂

    $redirect_url = ($this->redirect_page_id=="" || $this->redirect_page_id==0)?get_site_url() . "/checkout/order-received/$order->id/?key='$order->order_key'":get_permalink($this->redirect_page_id);

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Order confirmation page not found’ is closed to new replies.