Disable page scroll on add to cart

Is there any way to disable the page scrolling to the top when the user clicks the add to cart button? I have a fixed header, so no need to scroll the page. I realize the page goes back to its previous position after closing the cart, but I’d still like to not have the page scroll since it’s an unnecessary interaction. I don’t see anything in the template’s js file to control this, so I’m assuming that behavior is controlled by vin65.js.

Hey Jeff,

You’re correct that that feature come from WineDirect’s core JS file and there’s no way to disable it. The only workaround is to write some custom JS to detect that button click and override the scroll effect

1 Like