less than a minute read • Updated 9 minutes ago
How the cart works
An introduction to the cart — what it does, how it fits into your store, and the various display modes.
The cart is where your customers’ products are stored as they shop. It sits between your product links and the checkout, managing the current session for each visitor.
The cart can be loaded as HTML for display, or as JSON for programmatic interaction — this flexibility allows for a wide range of implementations from simple to fully custom.
The cart appears in several contexts across Foxy:
As the cart itself — where customers view and manage their products before checking out
On the checkout — a static summary of cart contents
On the receipt — a static record of what was purchased
In email receipts — a static record included in the confirmation email
Notes
Foxy uses jQuery for cart functionality. If your site has other jQuery-dependent plugins, include your own copy of jQuery — do not rely on Foxy’s bundled version.
The cart URL endpoint is
/cart. All cart interactions — adding products, viewing the cart, applying coupons — are requests to this endpoint.If you want to use Foxy for checkout and payments without the cart, see Using Foxy without the cart.