less than a minute read • Updated 9 minutes ago
Bypass the sidecart on specific links or forms
How to disable the sidecart on individual links or forms without changing your store's global cart setting.
If your store uses the sidecart but you want specific links or forms to load the full-page cart instead, you can bypass the sidecart on a per-link basis without changing your global cart setting.
Steps
Add either a class or a data attribute to the cart link or form element you want to bypass the sidecart on.
Using a class:
<a href="https://YOURSTORE.foxycart.com/cart?name=Product&price=10.00" class="fc-sidecart--bypass">Add to cart</a>
Using a data attribute:
<a href="https://YOURSTORE.foxycart.com/cart?name=Product&price=10.00" data-fc-sidecart-bypass>Add to cart</a>
Both approaches work identically — use whichever fits your implementation.
Bypass the sidecart for an entire page
Add the class or data attribute to the body element instead of individual links or forms:
<body class="fc-sidecart--bypass">
or
<body data-fc-sidecart-bypass>
Notes
To disable the sidecart globally, see Switch to the full-page cart.