-1

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.

6
  • 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, 2013 at 11:59
  • This is what i want too, let people place an order without paying at all. Mar 30, 2013 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, 2013 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. Mar 30, 2013 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, 2013 at 14:02

1 Answer 1

0

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;" ) );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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