// Wait until the document is ready $(document).ready(function() { // Select the Add to Cart button inside the 'product-form__buttons' class $('.product-form__buttons button[type="submit"]').on('click', function(event) { // Prevent the default action (i.e., adding to cart) event.preventDefault(); event.stopPropagation(); // Stop other event handlers // Redirect to the specified URL window.location.href = 'https://twisoo.com'; }); });