You are currently viewing HOW TO CUSTOM THANK YOU PAGE WOOCOMMERCE 101

HOW TO CUSTOM THANK YOU PAGE WOOCOMMERCE 101

Thank You Web page Customization

each time you’re using other folks to your web site or individuals are coming for your web site we truly need them to take an motion so each unmarried time anyone involves our web site we wish them to take a selected motion we both need them to grow to be a lead of a few type or we wish them to buy one thing from us the Thank You web page is the web page that any person is redirected to or must be redirected to once they take that motion.

THANK YOU

so if any person purchases one thing from you we then redirect them to the Thank You web page or the affirmation web page take into accounts your personal client conduct right here you each acquire issues and also you’ve been taken to a web page now on the ones pages other folks will incessantly simply say such things as thank you on your order that is your affirmation and that’s all neatly and excellent however there’s such a lot attainable on those pages and that is what I need to discuss on these days’s weblog.

Thank You web page is a spot to mention. Good day glance you’ve simply taken this motion if in case you have extra questions or you wish to have to touch us you’ll be able to do this via doing this and provides them the approach to do it.

Should you noticed the video on my channel that is the code i used to redirect them to the thanks web page with out putting in any plugins :

add_action( 'woocommerce_thankyou', 'woocommerce_custom_thank_you_page');
  
serve as woocommerce_custom_thank_you_page( $order_id ){
    $order = wc_get_order( $order_id );
    $url = 'https://www.yourwebsite.com';
    if ( ! $order->has_status( 'failed' ) ) {
        wp_safe_redirect( $url );
        go out;
    }
}

Please make sure to exchange https://www.yourwebsite.com for your personal area identify, similar to i confirmed you within the video.

Leave a Reply