Is it possible to include a buy now button / one-click checkout?

Hello, I am looking to bypass the cart page and head straight to the filling shipping and credit info with a button. Buying just the item clicked from a buy now button.

Sorry if this has already been asked. I am new and could not find it from my research.
Thanks!

Hi @truman

I believe you can, just direct the user to the URL after adding the product to cart

[yourdomain.com]/#/checkout

$("a#thing_to_click").click(function(e){
         e.preventDefault();
         window.location = "[yourdomain.com]/#/checkout";    
});

Please try it and let the community knows if it works :smiley:

1 Like

Hello!

I tried and it definitely worked! To anyone else trying to implement this, make sure to add

data-config-add-product-behavior="none"

to your snipcart div. This prevents the cart from opening if you want an item added to cart and sent to checkout with the same button.

Referenced at here at global configurations. :grinning:

3 Likes