One or more of the items in your cart is a recurring or deferred purchase. By continuing, I agree to the cancellation policy and authorize you to charge my payment method at the prices, frequency and dates listed on this page until my order is fulfilled or I cancel, if permitted.
document.addEventListener('DOMContentLoaded', function() {
// Replace 'your-template-id' with the actual ID or partial ID you're looking for
const targetTemplateId = '18287697330344';
// Get all elements with an ID attribute
const elementsWithId = document.querySelectorAll('[id]');
// Check if any element's ID contains the target template ID
const templateFound = Array.from(elementsWithId).some(element => {
return element.id.includes(targetTemplateId);
});
// If the template ID is found on the page, hide the header
if (templateFound) {
const header = document.querySelector('.theme__header'); // Replace with your header selector
if (header) {
header.style.display = 'none';
}
}
});
document.addEventListener('DOMContentLoaded', function() {
const addToCartButtons = document.querySelectorAll('[class*="navlink--cart"]');
const cartDrawerTrigger = document.querySelector('[class*="icon-theme.icon-theme-stroke.icon-set-classic-bag"]');
if (addToCartButtons.length > 0 && cartDrawerTrigger) {
addToCartButtons.forEach(function(button) {
button.addEventListener('click', function() {
cartDrawerTrigger.click();
});
});
}
});