I am trying to implement this in my website:

Having a second button on a single product next to the"Add to cart" button, let that button be "Buy now".

When the add to cart button is clicked, the product will be added to the cart, when the Buy now button is clicked the client will be redirected to the checkout page where he will only checkout that single product, and that product will not be added to the cart.

For example, if the client was having products A and B in the cart, and clicks the Buy now o product C, he will only checkout for that product, and C will never be added to the cart.

I was thinking of a way to implement this, and I thought that having two different checkout pages might help,.. I don't know if it can, if you have a solution on how I can do this, I'd love to hear from you.


  • You could use the YITH One Click Checkout: wordpress.org/plugins/yith-woocommerce-one-click-checkout Dec 18, 2018 at 0:23
  • That one works only on the logged in users, is it possible to configure it so that non logged in users can access it too??
    – Real Moise
    Dec 18, 2018 at 0:26
  • You could if you wrote one that used LocalStorage instead of a user account, but then the user doesn't really benefit from that (has to enter her information anyway) Dec 18, 2018 at 0:26
  • Just reauested by my client, and i failed to do this. Just want to make it work even on the non logged in users
    – Real Moise
    Dec 18, 2018 at 0:29
  • Hi Nathan, do you have any other suggestions??
    – Real Moise
    Dec 18, 2018 at 0:33

1 Answer 1


You could code your own, and connect to a payment gateway's API, but plenty have tread this road before you so stand on their shoulders. Two possibilities:

Stripe One Click Checkout plugin by WooCommerce

PayPal One Click Checkout plugin by StoreApps

  • The Paypal one worked, but if you can provide the codes (that can do the same tasks as the plugin) I'd highly appreciate it.
    – Real Moise
    Dec 18, 2018 at 1:32
  • Just want the codes for my future learning..
    – Real Moise
    Dec 18, 2018 at 1:32
  • Sorry I don't have any of my own code for this, hence why I'd use one of the above plugins. Dec 18, 2018 at 19:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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