Ready to get started?Download WordPress


WooCommerce - excelling eCommerce
Order confirmation page not found (5 posts)

  1. coolhatwebdesign
    Posted 2 months ago #

    I'm running the latest WooCommerce and WordPress. My permalinks are default for the Product page settings, while my main site permalinks are set to http://www.sitename.com/sample-post. My site's customers are able to go through checkout and paying securely just fine, but once they finish paying and are routed back to the site, they get a Page Not Found. I've saved my Permalinks a few times but the error seems to persist.


  2. coolhatwebdesign
    Posted 2 months ago #

    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 sitename.com/cart, it automatically prepends "shop/" before cart and shows me the correct page. Same with sitename.com/checkout. 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 sitename.com/checkout/order-received/etcetcetcetc

    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.

  3. pandosia
    Posted 2 months ago #

    I have the same issue..
    Anyone can help?

  4. coolhatwebdesign
    Posted 2 months ago #

    I figured it was a problem with my Authorize.net checkout add-on for Woocommerce not providing the proper URL path when a customer finishes checkout on the secured Authorize.net 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 Authorize.net redirected them back to my site, the plugin printed the URL as sitename.com/checkout/order-received/etc. instead of sitename.com/SHOP/checkout/order-received/blahblah

    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.

  5. pandosia
    Posted 2 months ago #

    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(){


You must log in to post.

About this Plugin

About this Topic