less than a minute read • Updated 9 minutes ago
Skip the cart and go straight to checkout
How to send customers directly to checkout when they add a product, bypassing the cart entirely.
You can send customers directly to the Foxy checkout when they add a product, skipping the cart entirely. This is useful for single-product stores or when you want to reduce steps in the purchase flow.
Steps
Add cart=checkout as a parameter to your add to cart link or form:
https://YOURSTORE.foxycart.com/cart?name=Product+Name&price=10.00&cart=checkout
To empty any existing cart contents before redirecting to checkout, combine with empty=true:
https://YOURSTORE.foxycart.com/cart?name=Product+Name&price=10.00&empty=true&cart=checkout
Notes
cart=checkoutprocesses any product parameters in the same request before redirecting, so the product is added to the cart and the customer lands on the checkout with it already there.To redirect to PayPal Express Checkout instead, use
cart=checkout&fc_payment_method=paypal_ec.For a full list of cart parameters, see Cart parameters reference.