For more details and registration, please fill out the form and we will contact you shortly
21 Shimon Rokach St., Neve Tzedek, Tel Aviv-Jaffa
03-5161970
03-5161981
events@gutmanmuseum.co.il
Please fill out the form and we will contact you shortly.
21 Shimon Rokach St., Tel Aviv-Jaffa
03-5161970
03-5161981
info@gutmanmuseum.co.il
document.addEventListener('DOMContentLoaded', function () {
const form = document.querySelector('form.cart');
if (!form) return;
const submitButton = form.querySelector('[type="submit"]');
if (submitButton) {
submitButton.value = 'רכוש כרטיסים';
submitButton.innerText = 'רכוש כרטיסים';
}
form.addEventListener('submit', function (e) {
// נבדוק אם יש וריאציות שלא נבחרו
const requiredSelects = form.querySelectorAll('select');
for (let select of requiredSelects) {
if (!select.value) return; // לא נבצע הפנייה אם לא נבחרה וריאציה
}
// הפנייה אחרי זמן קצר – כדי לאפשר לווקומרס לעבד את ההוספה
setTimeout(function () {
window.location.href = '/cart';
}, 700);
});
});