Still don’t get what is wrong, I’ve tried the Add To Cart class as you mentioned and it opens the panel. I’m surprised at this development.
About the sticky panel hiding the add to cart panel, you can paste this code in Footer Code in your project settings
document.addEventListener("snipcart.ready", function () {
window.addEventListener("hashchange", () => {
const currentUrl = window.location.href;
const subPaths = [
"cart",
"register",
"signin",
"dashboard",
"forgot-password",
"checkout"
];
console.log(currentUrl);
const navbar = document.querySelector("#Top");
//if current url contains any of the subpaths, hide navbar
if (subPaths.some((v) => currentUrl.includes(v))) {
navbar.style.display = "none";
} else {
navbar.style.display = "flex";
}
});
});