How can you redirect clients to a perfectly looking, custom, item explicit thank you page?
Fortunately you can add some PHP code to your functions.php and characterize a redirect to a custom URL (instead of the default request got endpoint). This is an incredible route for you to include explicit up-sells, online media share and other data that could assist you with changing over extra sales.
Go to Appearance > Theme Editor > functions.php
add_action( ‘template_redirect’, ‘woocommerce_redirect_after_checkout’ );
function woocommerce_redirect_after_checkout() {
global $wp;
if ( is_checkout() && ! empty( $wp->query_vars[‘order-received’] ) ) {
$redirect_url = ‘https://addonplus.in/my-account/orders/’;
wp_redirect($redirect_url );
exit;
}
}
