Redirect to custom url after woocommerce checkout

Redirect to custom url after woocommerce checkout

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.

Step 1:

 

Go to  Appearance > Theme Editor > functions.php

 

Step 2 : Copy and paste this code into functions.php file.

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;
}

}

112 Comments

  1. I enjoy what you guys tend to be up too. This type of clever work and coverage!
    Keep up the great works guys I’ve included you guys to
    blogroll.

  2. 먹튀 says:

    Pretty component of content. I just stumbled upon your website and in accession capital to assert that I get actually
    enjoyed account your weblog posts. Anyway I’ll be subscribing for
    your augment and even I achievement you get entry to constantly fast.

  3. 먹튀 says:

    Hello to every one, it’s really a fastidious for me to pay a visit this web page, it consists
    of helpful Information.

  4. tellthebell says:

    My brother recommended I may like this web site. He was once totally right.
    This put up actually made my day. You cann’t believe just how a lot time
    I had spent for this information! Thank you!

  5. Howdy would you mind stating which blog platform you’re working with?
    I’m planning to start my own blog soon but I’m having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most blogs and I’m
    looking for something completely unique.
    P.S Sorry for being off-topic but I had to ask!

  6. After going over a handful of the blog posts on your
    website, I honestly like your way of writing a blog.

    I added it to my bookmark webpage list and will be checking back in the near
    future. Please visit my web site too and let me know what you think.

  7. tellthebell says:

    This is a topic which is near to my heart…
    Take care! Where are your contact details though?

  8. tellthebell says:

    This article is genuinely a good one it helps new internet viewers, who are wishing for blogging.

  9. Admiring the hard work you put into your site
    and in depth information you present. It’s nice to come
    across a blog every once in a while that isn’t the same
    old rehashed information. Great read! I’ve saved your site and I’m including your
    RSS feeds to my Google account.

  10. paketqq says:

    Hi there! I realize this is sort of off-topic however I had to ask.
    Does building a well-established website such as yours take
    a large amount of work? I’m brand new to writing a blog however I
    do write in my diary everyday. I’d like to start a blog so I will be able to share
    my own experience and views online. Please let me know
    if you have any kind of suggestions or tips for brand new aspiring blog owners.
    Thankyou!

    Feel free to visit my web-site … paketqq

  11. Arden Mane says:

    Hello, you used to write great, but the last few posts have been kinda boring… I miss your super writings. Past few posts are just a little bit out of track! come on! I tried Shopifyfor free to make a decision. 90 days for free is enough I think: https://bit.ly/Shopify90Days

  12. Can you tell us more about this? I’d want to find out some
    additional information.

  13. excellent issues altogether, you simply gained a emblem new
    reader. What may you recommend in regards to your submit that you made some days in the past?
    Any certain?

  14. หวย says:

    I’m not sure why but this website is loading incredibly slow
    for me. Is anyone else having this issue or is it a
    issue on my end? I’ll check back later on and see if the problem still exists.

  15. erotik says:

    If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela

  16. sikis izle says:

    Just wanna comment on few general things, The website design and style is perfect, the written content is really superb : D. Meredithe Byron Pride

  17. erotik says:

    Great post! We will be linking to this particularly great article on our website. Keep up the great writing. Rosene Skip Grannias

  18. erotik izle says:

    Hi! I realize this is kind of off-topic however I needed to ask. Claudia Kory Arst

  19. erotik says:

    This post provides clear idea in favor of the new people of blogging, that really how to do blogging. Arleyne Anson Trevar

  20. erotik izle says:

    Precisely what I was looking for, thanks for putting up. Kassia Antonino Godding

  21. erotik izle says:

    I got what you mean,saved to fav, very decent website. Petronella Clevie Shabbir

  22. erotik izle says:

    Wow, this paragraph is fastidious, my sister is analyzing such things, thus I am going to convey her. Arabele Hamlin Shea

  23. sikis izle says:

    Iced mocha spoon latte so white flavour, id decaffeinated crema, french press, instant affogato macchiato con panna fair trade coffee. Valene Kahlil Adena

  24. erotik izle says:

    Very good article! We are linking to this particularly great content on our site. Keep up the good writing. Lucie Tedd Eustis

  25. sikis izle says:

    Here is a superb Weblog You may Uncover Exciting that we encourage you to visit. Mariele Alphonse Potts

  26. sikis izle says:

    Hi there to all, how is all, I think every one is getting more from this site, and your views are nice designed for new users. Toby Goddard Utham

  27. film says:

    The Jungle Wild slot machinevideo slotslot machine game is a five reel, 20 payline slot machineproductdeviceequipmentcarbikegearreceiver. Robbie Miltie Narcissus

  28. sikis izle says:

    DZiekuje za rozmowe. Bardzo szybko Pani zadzwonila i poinformowala mnie co do dalszego postepowania w sprawie odszkodowawczej. Carley Keen Fabien

  29. film says:

    Remarkably enjoyable details you have remarked, thanks for posting. Nicki Ethelbert Ajay

  30. film says:

    You made some decent points there. I did a search on the subject matter and found most individuals will approve with your website. Kelsy Raviv Roselia

  31. film says:

    This piece of writing is actually a pleasant one iit helps new web viewers, who are wishing for blogging. Betti Lalo Hamer

  32. Hi i am kavin, its my first occasion to commenting anyplace, when i read
    this piece of writing i thought i could also make comment due to this brilliant article.

  33. film says:

    I really liked your blog article. Really looking forward to read more. Really Great. Wilie Terry Audly

  34. Greate article. Keep posting such kind of information on your blog.
    Im really impressed by it.
    Hey there, You’ve performed an incredible job. I’ll certainly digg it and in my view recommend to my friends.

    I’m sure they’ll be benefited from this site.

  35. film says:

    Hey, thanks for the blog. Really looking forward to read more. Really Great. Kelcie Darbee Thibaud

  36. bookmarked!!, I really like your website!

  37. film says:

    I like the helpful information you provide in your articles. Ellyn Paulo Honniball

  38. film says:

    I pay a visit everyday some web sites and websites to read content, except this web site offers quality based writing. Bunni Petey December

  39. I have read so many content regarding the blogger lovers but
    this piece of writing is really a pleasant post, keep it up.

  40. film says:

    Terrific work! That is the type of info that are supposed to be shared around the web. Veradis Benedikt Gavin

  41. film says:

    Hurrah! After all I got a blog from where I know how to truly obtain useful facts regarding my study and knowledge. Joelynn Pail Clarita

  42. film says:

    I have been checking out some of your stories and i must say nice stuff. I will definitely bookmark your website. Ali Bernhard Tibbetts

  43. film says:

    Good response in return of this difficulty with solid arguments and telling all concerning that. Flossy Kylie Gene

  44. sikis izle says:

    There is clearly a bundle to identify about this. I believe you made various good points in features also. Erda Carlos Nevai

  45. Wonderful post! We are linking to this great content on our website. Keep up the great writing. Lizzie Joshua Danieu

  46. Every weekend i used to pay a visit this web page, because i want enjoyment, since this this site conations genuinely nice funny stuff too. Kyle Chad Geraldine

  47. erotik says:

    Fusce convallis metus id felis luctus adipiscing. Maecenas nec odio et ante tincidunt tempus. Nulla porta dolor. Aenean imperdiet. Fusce neque. Courtnay Lesley Maite

  48. Thiss iis very attention-grabbing, You are a very professional blogger. TEirtza Oren Zolner

  49. erotik says:

    I cannot thank you enough for the blog article. Really thank you! Awesome. Andie Stewart Birdella

  50. sikis izle says:

    I conceive you have mentioned some very interesting points, appreciate it for the post. Deloria Ulick Gulgee

  51. bedava says:

    Great post! We are linking to this particularly great article on our website. Keep up the great writing. Melony Alano Magnusson

  52. erotik says:

    Thanks to my father who told me concerning this weblog, this website is really amazing. Ida Hilario Palestine

  53. I visited various blogs except the audio feature for audio songs present at this web page is genuinely excellent. Joscelin Neall Stefanie

  54. filmi izle says:

    Thank you for sharing. Your blog post is interesting and informative. I think many people like it and visit it often, including me. Giuditta Vito Theobald

  55. hd film izle says:

    Thankfulness to my father who told me concerning this web site, this webpage is really amazing. Dasha Sherm Elstan

  56. Im grateful for the article. Much thanks again. Much obliged. Ange Regan Clover

  57. full hd izle says:

    Thanks-a-mundo for the post. Much thanks again. Really Cool. Phillie Dannie Ahders

  58. 123movies says:

    Great blog here! Also your web site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as fast as yours lol Katlin Alfredo Carrie

  59. dublaj says:

    I just like the valuable info you supply to your articles. Kalie Lowell Zobkiw

  60. หวย says:

    I get pleasure from, result in I discovered just what I was having a look
    for. You’ve ended my four day long hunt! God Bless you
    man. Have a nice day. Bye

  61. หวย says:

    Excellent beat ! I wish to apprentice while you amend your website, how can i subscribe
    for a blog site? The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast
    provided bright clear concept

  62. หวย says:

    I’m really impressed along with your writing talents and
    also with the layout on your weblog. Is that this a paid subject or did you
    modify it your self? Anyway keep up the excellent high quality writing,
    it is uncommon to look a nice weblog like this
    one these days..

  63. หวย says:

    I am regular visitor, how are you everybody? This piece of writing posted
    at this web site is genuinely nice.

  64. 0mniartist says:

    Attractive section of content. I just stumbled upon your blog and in accession capital to
    assert that I acquire actually enjoyed account your blog posts.
    Anyway I’ll be subscribing to your augment and even I achievement you access consistently rapidly.
    asmr 0mniartist

  65. 0mniartist says:

    I used to be recommended this web site via my cousin. I’m not certain whether this put up
    is written via him as no one else realize such precise about my
    difficulty. You are incredible! Thank you! asmr 0mniartist

  66. 0mniartist says:

    I constantly spent my half an hour to read this weblog’s content daily along with a
    mug of coffee. 0mniartist asmr

  67. 0mniartist says:

    Hello, yup this article is actually good and I have learned
    lot of things from it regarding blogging. thanks. 0mniartist asmr

  68. 0mniartist says:

    Hi there Dear, are you genuinely visiting this web page
    regularly, if so afterward you will absolutely get pleasant know-how.
    0mniartist asmr

  69. Deon says:

    Keep on writing, great job!

  70. หวย says:

    It’s perfect time to make some plans for the future and it’s time to be happy.

    I have read this put up and if I may just I wish to counsel you
    some attention-grabbing issues or suggestions. Maybe you could write next articles regarding this article.
    I want to read more issues approximately it!

  71. หวย says:

    I do not know if it’s just me or if perhaps everyone else experiencing problems with your site.
    It looks like some of the written text on your posts are running
    off the screen. Can somebody else please provide feedback and let me know if this is happening to them too?

    This may be a problem with my internet browser because I’ve had this happen before.
    Cheers

  72. หวย says:

    This is very interesting, You are a very skilled blogger.
    I have joined your rss feed and look forward to seeking more of your great post.
    Also, I have shared your site in my social networks!

  73. Ada says:

    Wonderful goods from you, man. I have understand your stuff prior to and you’re simply too fantastic.
    I really like what you’ve got right here, certainly like what you are saying and the way in which by which you
    say it. You make it enjoyable and you continue to take care of
    to stay it wise. I can not wait to learn far more from you.
    That is really a tremendous web site.

  74. Edibles says:

    Really informative blog.Thanks Again. Really Great.

  75. rapidmoviez says:

    Do you mind if I quote a few of your articles as long as
    I provide credit and sources back to your weblog?
    My website is in the very same niche as yours and my users would certainly
    benefit from a lot of the information you provide here.
    Please let me know if this alright with you.
    Appreciate it!

  76. Marc says:

    After I initially left a comment I appear to
    have clicked on the -Notify me when new comments are added- checkbox and
    now each time a comment is added I receive 4 emails with
    the exact same comment. There has to be an easy method you are able to remove me from that service?
    Kudos!

  77. Jamaal says:

    You actually make it seem so easy with your presentation but I find this matter
    to be actually something that I think I would
    never understand. It seems too complex and very broad for me.
    I’m looking forward for your next post, I’ll try to
    get the hang of it!

  78. Meagan says:

    Hi there! Quick question that’s totally off topic. Do you know
    how to make your site mobile friendly? My weblog looks
    weird when browsing from my apple iphone. I’m trying to find a theme or plugin that might be able
    to fix this problem. If you have any recommendations, please share.
    With thanks!

  79. Jasmin says:

    It’s perfect time to make some plans for the future
    and it’s time to be happy. I’ve read this post and
    if I could I want to suggest you some interesting things or advice.
    Perhaps you can write next articles referring to this
    article. I wish to read more things about it!

  80. After exploring a handful of the blog articles on your website,
    I seriously appreciate your technique of writing a
    blog. I book-marked it to my bookmark webpage list
    and will be checking back soon. Please check out my web site too and
    let me know what you think.

  81. An impressive share! I’ve just forwarded this onto a colleague who was conducting a little research
    on this. And he in fact bought me breakfast due to the fact that I found it for him…
    lol. So allow me to reword this…. Thank YOU for the meal!!
    But yeah, thanx for spending the time to discuss this subject here on your blog.

  82. Admiring the commitment you put into your blog and detailed information you provide.
    It’s awesome to come across a blog every once in a while that isn’t the same outdated
    rehashed material. Wonderful read! I’ve saved your site
    and I’m adding your RSS feeds to my Google account.

  83. of course like your website but you need to take a look at the spelling on quite a few of your posts. Many of them are rife with spelling issues and I find it very troublesome to inform the truth nevertheless I will surely come again again.

  84. Myron says:

    Helpful info. Fortunate me I discovered your site accidentally, and
    I’m shocked why this twist of fate did not came about in advance!

    I bookmarked it.

  85. Brittny says:

    I know this if off topic but I’m looking into starting my own blog and was wondering
    what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web smart so I’m not 100% certain.
    Any tips or advice would be greatly appreciated.

    Kudos

  86. Milton says:

    I know this web site presents quality depending content and other material, is there any other site which presents these stuff in quality?

  87. I like the valuable info you supply on your articles. I’ll bookmark your blog and check once more here frequently. I’m somewhat sure I’ll be informed many new stuff proper right here! Good luck for the next!

  88. In the grand design of things you actually secure a B+ for effort and hard work. Exactly where you misplaced everybody ended up being in all the facts. As people say, the devil is in the details… And it couldn’t be more accurate here. Having said that, allow me say to you exactly what did do the job. Your article (parts of it) is highly engaging and this is most likely the reason why I am making the effort to comment. I do not make it a regular habit of doing that. Secondly, even though I can see the leaps in logic you make, I am definitely not certain of exactly how you appear to unite your points which inturn help to make the conclusion. For now I shall subscribe to your position but hope in the near future you actually connect your facts better.

  89. Carla says:

    If you desire to obtain a good deal from this paragraph then you have to apply these techniques to your
    won website.

  90. Isobel says:

    You can certainly see your expertise within the work you write.
    The arena hopes for more passionate writers such as you who aren’t afraid to mention how they believe.
    Always go after your heart.

  91. Sharyn says:

    Howdy! I simply would like to give you a huge thumbs up for the great info you have
    right here on this post. I will be returning to your web site for more soon.

  92. Chó Poodle says:

    You made some decent points there. I looked on the internet for the issue and found most individuals will go along with with your website.

  93. WONDERFUL Post.thanks for share..more wait .. 😉 ?

  94. 75mrD says:

    966303 646638For anybody who is interested in enviromentally friendly items, may possibly possibly surprise for you the crooks to maintain in mind that and earn under a holder basically because kind dissolved acquire various liters to critical oil to make. day-to-day deal livingsocial discount baltimore washington 727194

  95. I am often to blogging and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your site and keep checking for new information.

  96. It?s hard to find knowledgeable people on this topic, but you sound like you know what you?re talking about! Thanks

  97. I?d have to check with you here. Which is not something I usually do! I enjoy reading a post that will make people think. Also, thanks for allowing me to comment!

  98. Nannette says:

    I all the time emailed this website post page to all my friends, since if like to
    read it next my friends will too.

  99. Hmm it appears like your website ate my first comment (it was super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still new to everything. Do you have any recommendations for inexperienced blog writers? I’d definitely appreciate it.

  100. Else Stoett says:

    I was initially skeptical. I was baffled that I was able to read this long post. Your style caught my attention. Then you came back with another excellent article as always. Great Article Neil. I read it a few days ago, but I didn’t leave any comments, however I thought this article was good enough to merit a mention. for the article. I’ll try to implement some of these suggestions on my websites soon!

  101. Just wanna remark on few general things, The website style is ideal, the topic matter is rattling goodauto approve links

  102. Ernestine says:

    Does your blog have a contact page? I’m having a tough time locating it
    but, I’d like to send you an e-mail. I’ve got some creative
    ideas for your blog you might be interested in hearing.
    Either way, great blog and I look forward to seeing it expand
    over time.

  103. หวย says:

    I don’t even know the way I finished up right here, but I thought
    this put up was good. I do not understand
    who you’re however definitely you’re going to a well-known blogger in case you are not already.
    Cheers!

  104. Ila says:

    Hello, Neat post. There is a problem along with your site in internet
    explorer, may check this? IE still is the market chief and a big part of other folks will leave
    out your great writing because of this problem.

  105. I really like what you guys tend to be up too. This
    type of clever work and reporting! Keep up the good works guys I’ve included you guys to
    blogroll.

  106. Cornelius says:

    It’s hard to find educated people on this topic, however,
    you seem like you know what you’re talking about! Thanks

  107. Roman says:

    What’s up colleagues, how is everything, and what you want to say concerning this post,
    in my view its truly remarkable in support of me.

  108. Lorena says:

    Amazing! This blog looks exactly like my old one! It’s on a completely
    different topic but it has pretty much the
    same page layout and design. Great choice of colors!

  109. Laurence says:

    I for all time emailed this blog post page to all my friends, as if like to read it next my links will too.

  110. Cedric says:

    Hi, this weekend is pleasant in favor of me, for the reason that this point in time i am reading
    this enormous informative piece of writing
    here at my home.

  111. Brandy says:

    Hello, Neat post. There’s a problem with your site in web explorer, would check this?
    IE still is the market chief and a huge component to
    other folks will leave out your magnificent writing because of
    this problem.

Leave a Reply

Your email address will not be published. Required fields are marked *

two  +  three  =