• Resolved RonaldS

    (@norus)


    To test I had some success page plugins installed. And then also removes. Now I get, unfortunately, after an order referring to a success page in the link.
    Here is an example:
    shop.com/en/checkout/order-received/1490/success/

    Question: Where can I restore the url back to its default setting? So without /success/
    Find me blankly by various menus and options, but find no solution.

    Does anyone get me on the right path?
    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter RonaldS

    (@norus)

    Found the problem maker in functions.php
    You can put any kind of template file in it.
    add_action( ‘template_redirect’, ‘wc_custom_redirect_after_purchase’ );
    function wc_custom_redirect_after_purchase() {
    global $wp;

    if ( is_checkout() && ! empty( $wp->query_vars[‘order-received’] ) ) {
    wp_redirect( ‘https://www.yoururl.com/your-page/’ );
    exit;
    }
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce How do I get the standard order-received page?’ is closed to new replies.