less than a minute read • Updated 3 hours ago
Using Foxy without the cart
How to use Foxy's checkout without the cart, sending customers directly from your site to checkout.
Foxy’s cart is optional. If you already have cart functionality on your own site, or you’re selling a single product, you can bypass the cart entirely and send customers directly to the Foxy checkout.
This approach uses Foxy purely as a hosted checkout page, with your own site handling the cart experience.
When to use this approach
You have an existing cart on your own site and want to hand off to Foxy only for checkout
You’re selling a single product and want to send customers straight to checkout
You’re building a custom cart experience using Foxy’s JSON output
How to set it up
Use cart=checkout as a parameter in your add to cart link or form. This adds the product to the cart and immediately redirects to the checkout.
https://YOURSTORE.foxycart.com/cart?name=Product+Name&price=10.00&cart=checkout
To empty any existing cart contents before redirecting, combine with empty=true:
https://YOURSTORE.foxycart.com/cart?name=Product+Name&price=10.00&empty=true&cart=checkout
Notes
Product parameters are the same as standard add to cart links — only the
cart=checkoutparameter changes the behaviour.For server-side cart construction, see Interact with the cart server-side.
For a full list of cart parameters, see Cart parameters reference.