Cart — Institute for Empowering Communication
// Prevent redirect to checkout and keep users on the workshops page
document.addEventListener('DOMContentLoaded', function () {
const addToCartButtons = document.querySelectorAll('.sqs-add-to-cart-button');
addToCartButtons.forEach(button => {
button.addEventListener('click', function (event) {
event.preventDefault(); // Prevent auto-redirect
// Add custom logic to display the cart count (optional)
// Update cart count in header or page dynamically
});
});
});