Is there any way, when clicking on an “Add to Cart” button, to prevent Snipcart from loading the Cart in any fashion? I’m working for a nonprofit who would like folks who add their free resources to the cart to get sent to a donation opportunity page. Snipcart’s defaults prevent this from happening, obviously.
I don’t think that’s compatible with Snipcart 3, though.
My bad, I didnt realize I was in 2.0 doc. You’ll have to do it in JS then. Possibly with the theme.routechanged event? JavaScript SDK events – Snipcart Documentation
I think that’s likely the best solution if somebody googling gets here, but as is often the case in these situations, I came up with a more creative design-based solution to get the client to their goals. I couldn’t figure this out and time was of the essence. Thanks for the suggestion though!