Tips / Recommendations

Redirect after a successful order in the store

The redirect can be done by adding this code to the function.php of your theme.

add_action( 'template_redirect', 'woo_custom_redirect_after_purchase' );
function woo_custom_redirect_after_purchase() {
    global $wp;
    if ( is_checkout() && !empty( $wp->query_vars['order-received'] ) ) {
        wp_redirect( 'URL куда будем делать редирект' );

Now you can simply create a “thank you for order” page and arrange it as you like.