⚠️ WARNING: Store theme has expired. Some functions may be disabled ⚠️
document.addEventListener('DOMContentLoaded', function () {
// Disable checkout button when there are items in the cart
var checkoutButton = document.querySelector('button[name="checkout"]');
if (checkoutButton) {
checkoutButton.disabled = true;
checkoutButton.style.backgroundColor = '#d3d3d3'; // Optionally change the background color
checkoutButton.style.cursor = 'not-allowed'; // Change cursor to indicate it's disabled
checkoutButton.addEventListener('click', function(event) {
event.preventDefault(); // Prevent the default checkout behavior
alert("We are temporarily not accepting orders. Thank you for your understanding.");
});
}
});