less than a minute read • Updated 9 minutes ago
Redirect customers after adding to cart
How to automatically redirect customers to a specific page after they add a product to the cart.
You can automatically redirect customers to a specific page after they add a product to the cart. This is useful for upsell pages, confirmation pages, or any custom post-add-to-cart flow.
Steps
Add the redirect parameter to your cart link or form:
https://YOURSTORE.foxycart.com/cart?name=Product+Name&price=10.00&redirect=upsell.html
Notes
The redirect path must be on the same domain as your store as configured in the Foxy admin. You cannot redirect to an external domain.
URL encode any
?and&symbols in the redirect path.The redirect happens after the cart request is processed, so any products in the same request are added to the cart before the redirect occurs.
For a full list of cart parameters, see Cart parameters reference.