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

39 comentarios

  • Having read this I thought it was really enlightening. I appreciate you spending some time and energy to put this information together. I once again find myself personally spending a significant amount of time both reading and commenting. But so what, it was still worthwhile!

  • Hi, I think your site may be having browser compatibility problems. When I look at your site in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping issues. I merely wanted to provide you with a quick heads up! Aside from that, wonderful blog.

  • Hey there! I just want to give you a huge thumbs up for the great information you have got right here on this post. I’ll be returning to your website for more soon.

  • Your style is so unique compared to other people I’ve read stuff from. Thanks for posting when you’ve got the opportunity, Guess I will just bookmark this site.

  • You are so cool! I do not suppose I have read through anything like this before. So wonderful to find another person with a few unique thoughts on this subject matter. Seriously.. thanks for starting this up. This site is one thing that’s needed on the internet, someone with a little originality.

  • Howdy! I just would like to offer you a big thumbs up for the great information you have got here on this post. I’ll be returning to your website for more soon.

  • This is a good tip particularly to those fresh to the blogosphere. Simple but very precise info… Many thanks for sharing this one. A must read article!

  • I’m impressed, I must say. Seldom do I encounter a blog that’s both equally educative and engaging, and let me tell you, you’ve hit the nail on the head. The issue is something too few folks are speaking intelligently about. Now i’m very happy I found this during my search for something relating to this.

  • Pretty! This has been an incredibly wonderful post. Thanks for supplying this info.

  • Greetings! Very useful advice within this post! It’s the little changes that produce the biggest changes. Thanks a lot for sharing!

  • Aw, this was a very nice post. Finding the time and actual effort to produce a great article… but what can I say… I hesitate a whole lot and don’t manage to get anything done.

  • There is certainly a lot to learn about this subject. I love all of the points you made.

  • I love reading a post that will make men and women think. Also, many thanks for permitting me to comment.

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

  • Good post. I learn something totally new and challenging on sites I stumbleupon on a daily basis. It will always be helpful to read through articles from other authors and practice a little something from other sites.

  • Your style is unique in comparison to other people I’ve read stuff from. I appreciate you for posting when you have the opportunity, Guess I will just bookmark this page.

  • I seriously love your website.. Very nice colors & theme. Did you develop this web site yourself? Please reply back as I’m looking to create my own site and would like to know where you got this from or what the theme is called. Appreciate it!

  • I like reading through a post that can make people think. Also, thanks for permitting me to comment.

  • Excellent article! We are linking to this great post on our website. Keep up the great writing.

  • I was studying some of your posts on this website and I conceive this web site is very
    informative! Continue posting. Euro travel

  • I would like to thank you for the efforts you have put in penning this site. I am hoping to view the same high-grade content from you later on as well. In truth, your creative writing abilities has motivated me to get my own site now 😉

  • After I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I get 4 emails with the same comment. There has to be a means you are able to remove me from that service? Thanks a lot.

  • Pretty! This was an extremely wonderful post. Thanks for providing these details.

  • I want to to thank you for this good read!! I definitely enjoyed every bit of it. I have got you book-marked to check out new things you post…

  • This site was… how do you say it? Relevant!! Finally I have found something which helped me. Many thanks!

  • I really like reading through a post that will make men and women think. Also, thank you for permitting me to comment.

  • The very next time I read a blog, Hopefully it won’t disappoint me as much as this particular one. I mean, Yes, it was my choice to read through, but I actually believed you would have something helpful to talk about. All I hear is a bunch of crying about something that you could possibly fix if you were not too busy seeking attention.

  • Pretty! This was an incredibly wonderful post. Many thanks for providing this information.

  • I’m impressed, I must say. Rarely do I come across a blog that’s both educative and entertaining, and let me tell you, you’ve hit the nail on the head. The issue is something which too few folks are speaking intelligently about. I’m very happy I stumbled across this in my search for something regarding this.

  • It’s difficult to find experienced people in this particular topic, but you sound like you know what you’re talking about! Thanks

  • Hi there! I simply would like to give you a big thumbs up for the excellent information you have got right here on this post. I am returning to your web site for more soon.

  • Good site you have got here.. It’s difficult to find high quality writing like yours these days. I really appreciate individuals like you! Take care!!

  • Very good info. Lucky me I discovered your website by chance (stumbleupon). I’ve saved as a favorite for later!

  • Having read this I thought it was very informative. I appreciate you taking the time and effort to put this article together. I once again find myself spending way too much time both reading and leaving comments. But so what, it was still worth it!

  • Good information. Lucky me I discovered your blog by accident (stumbleupon). I have book-marked it for later.

  • Excellent write-up. I absolutely love this website. Thanks!

  • I’m amazed, I must say. Seldom do I come across a blog that’s both educative and interesting, and let me tell you, you have hit the nail on the head. The problem is something which too few folks are speaking intelligently about. I am very happy that I found this during my hunt for something regarding this.

  • Really fantastic info can be found on blog.?

  • Awsome article and straight to the point. I am not sure if this is
    actually the best place to ask but do you people have any ideea where to get some professional writers?
    Thank you 🙂