WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use WooCommerce plugin for my shop. I want to skip the PayPal redirection on the "Thank You" page, where users are redirect to PayPal site. I'd like to add to every order also the shipping prices which are different for every product due to product weight and courier distance. I can invoice the customer later with the updated price so they can proceed with payment via PayPal after that. Thank you.

share|improve this question
I don't think you can use the PayPal gateway for this, because it will not happen in the same session and the price will also change. It would make more sense to let people place an order without paying at all. Alternatively, you could use table rate shipping plugin (which is what I would do in your case). – Ewout Mar 30 '13 at 11:59
This is what i want too, let people place an order without paying at all. – Grávuj Miklós Henrich Mar 30 '13 at 12:23
You could use the bacs/direct bank transfer, rename the title to something like 'get quote' and use the text + email confirmation they get to explain you calculate shipping and get back to them. – Ewout Mar 30 '13 at 13:30
bacs/direct bank transfer is one of my 4 payment options, only credit card payment is disabled. So this option is dropped. But thanks. – Grávuj Miklós Henrich Mar 30 '13 at 13:39
So if I understand correctly, you want the following: 1) customer selects products 2a) customer reviews cart (optional) 2b) customer arrives at thank you page (instead of checkout) 3) you add shipping costs 4) you send customer to real checkout page where he or she buys the product? – Ewout Mar 30 '13 at 14:02
up vote 0 down vote accepted

On page class-wc-gateway-paypal.php -> $this->liveurl = 'http://www.yourdomain.com/page-name/';

Then in the theme functions.php:

remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.