REDIRECCION DESPUES DE COMPRA

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( ‘http://www.yoururl.com/gracias/’ );
exit;
}
}

Entradas relacionadas

51 comentarios

  • Greetings! Very useful advice in this particular post! It’s the little changes that make the largest changes. Thanks for sharing!

  • It’s difficult to find well-informed people on this subject, however, you sound like you know what you’re talking about! Thanks

  • Hey, I loved your post! Visit my site: ANCHOR.

  • Hey, I loved your post! Check out my site: ANCHOR.

  • You’re so awesome! I don’t believe I’ve truly read through something like this before. So nice to discover somebody with a few original thoughts on this issue. Really.. thank you for starting this up. This website is one thing that is required on the internet, someone with some originality.

  • Everything is very open with a very clear clarification of the challenges. It was really informative. Your website is very useful. Thank you for sharing!

  • Hi, I do think this is a great blog. I stumbledupon it 😉 I’m going to return yet again since I bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

  • Way cool! Some extremely valid points! I appreciate you writing this write-up plus the rest of the website is very good.

  • Good post. I will be dealing with some of these issues as well..

  • Your style is very unique compared to other people I’ve read stuff from. Thank you for posting when you have the opportunity, Guess I will just book mark this page.

  • I needed to thank you for this fantastic read!! I definitely enjoyed every bit of it. I’ve got you bookmarked to look at new stuff you post…

  • You are so cool! I do not think I have read through a single thing like this before. So nice to find someone with some original thoughts on this subject matter. Seriously.. thank you for starting this up. This web site is one thing that is needed on the internet, someone with some originality.

  • super content. thanks for your effort

  • Saved as a favorite, I really like your site.

  • Excellent site you have got here.. It’s hard to find quality writing like yours nowadays. I truly appreciate individuals like you! Take care!!

  • Hi there, I do believe your web site could be having internet browser compatibility problems. When I look at your blog in Safari, it looks fine however, if opening in IE, it has some overlapping issues. I merely wanted to provide you with a quick heads up! Besides that, wonderful site!

  • I’m extremely pleased to find this site. I need to to thank you for ones time for this wonderful read!! I definitely liked every little bit of it and I have you saved as a favorite to check out new stuff on your site.

  • Watch our exclusive Neerfit sexy bf video on neerfit.co.in.

  • Aw, this was a really nice post. Taking the time and actual effort to generate a superb article… but what can I say… I procrastinate a whole lot and never seem to get nearly anything done.

  • Excellent article. I will be experiencing many of these issues as well..

  • Hello there! This article could not be written any better! Looking at this post reminds me of my previous roommate! He continually kept preaching about this. I am going to send this information to him. Pretty sure he’s going to have a good read. I appreciate you for sharing!

  • An outstanding share! I’ve just forwarded this onto a colleague who has been doing a little research on this. And he in fact bought me dinner simply because I found it for him… lol. So allow me to reword this…. Thanks for the meal!! But yeah, thanx for spending time to discuss this matter here on your site.

  • Great info. Lucky me I recently found your blog by accident (stumbleupon). I have book marked it for later!

  • Great article! We will be linking to this particularly great content on our site. Keep up the great writing.

  • I could not refrain from commenting. Exceptionally well written!

  • Howdy! This blog post couldn’t be written much better! Going through this post reminds me of my previous roommate! He continually kept talking about this. I most certainly will forward this information to him. Fairly certain he’ll have a great read. I appreciate you for sharing!

  • May I simply say what a comfort to find someone who genuinely knows what they’re talking about on the net. You certainly realize how to bring an issue to light and make it important. A lot more people should read this and understand this side of your story. It’s surprising you are not more popular because you certainly possess the gift.

  • This is a topic which is near to my heart… Thank you! Exactly where are your contact details though?

  • This website was… how do I say it? Relevant!! Finally I’ve found something that helped me. Appreciate it.

  • Way cool! Some very valid points! I appreciate you writing this article and also the rest of the website is also really good.

  • I used to be able to find good info from your articles.

  • You need to take part in a contest for one of the greatest sites on the internet. I most certainly will highly recommend this web site!

  • Aw, this was an exceptionally nice post. Taking the time and actual effort to generate a great article… but what can I say… I procrastinate a whole lot and never seem to get anything done.

  • After I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I receive 4 emails with the exact same comment. Perhaps there is an easy method you can remove me from that service? Thanks.

  • Having read this I thought it was really enlightening. I appreciate you taking the time and effort to put this informative article together. I once again find myself personally spending a lot of time both reading and commenting. But so what, it was still worthwhile.

  • Greetings! Very helpful advice in this particular article! It is the little changes that will make the largest changes. Thanks for sharing!

  • I need to to thank you for this fantastic read!! I absolutely enjoyed every little bit of it. I have you saved as a favorite to check out new stuff you post…

  • You need to take part in a contest for one of the finest blogs online. I am going to highly recommend this blog!

  • An outstanding share! I have just forwarded this onto a co-worker who was conducting a little homework on this. And he in fact bought me breakfast because I found it for him… lol. So allow me to reword this…. Thanks for the meal!! But yeah, thanx for spending some time to talk about this issue here on your website.

  • Way cool! Some very valid points! I appreciate you penning this post and also the rest of the website is really good.

  • The very next time I read a blog, Hopefully it doesn’t fail me as much as this particular one. I mean, Yes, it was my choice to read, however I truly thought you would have something helpful to say. All I hear is a bunch of complaining about something you can fix if you weren’t too busy looking for attention.

  • There is certainly a lot to find out about this topic. I like all of the points you’ve made.

  • It’s nearly impossible to find educated people in this particular topic, however, you seem like you know what you’re talking about! Thanks

  • After exploring a few of the articles on your web site, I seriously appreciate your technique of blogging. I book-marked it to my bookmark website list and will be checking back soon. Please visit my website as well and tell me what you think.

  • Having read this I thought it was really informative. I appreciate you finding the time and energy to put this information together. I once again find myself spending way too much time both reading and commenting. But so what, it was still worth it!

  • I seriously love your site.. Pleasant colors & theme. Did you build this site yourself? Please reply back as I’m trying to create my very own website and would love to know where you got this from or exactly what the theme is called. Thanks.

  • There is definately a lot to know about this issue. I love all the points you made.

  • Oh my goodness! Impressive article dude! Thanks, However I am going through problems with your RSS. I don’t know why I cannot subscribe to it. Is there anybody else having the same RSS problems? Anybody who knows the answer can you kindly respond? Thanx!

  • You are so awesome! I don’t suppose I’ve truly read through a single thing like this before. So wonderful to find someone with some original thoughts on this subject. Seriously.. thank you for starting this up. This website is one thing that’s needed on the internet, someone with some originality.

  • I was able to find good information from your articles.

Deja tu comentario