diff --git a/local/templates/.default/js/custom.js b/local/templates/.default/js/custom.js index 0f4e77a..5942403 100644 --- a/local/templates/.default/js/custom.js +++ b/local/templates/.default/js/custom.js @@ -30,9 +30,9 @@ function cartCheckout(formElement) { const formData = new FormData(formElement); const submitButton = formElement.querySelector('button[type=submit]'); - formData.forEach((value, key) => { - console.log(`${key}: ${value}`); - }); + // formData.forEach((value, key) => { + // console.log(`${key}: ${value}`); + // }); } @@ -131,15 +131,7 @@ function handleConsultationForm(formElement) { .then(response => response.json()) .then(data => { if (data.success) { - const isFooterPopup = formElement.querySelector('[name="footer_popup_form"]'); - const isConsultation = formElement.querySelector('[name="consultation_form"]'); - - if (isFooterPopup) { - window.location.href = '/spasibo_blue/'; - } else if (isConsultation) { - window.location.href = '/spasibo-footer/'; - } - + window.location.href = '/spasibo-blue/'; formElement.reset(); } else { showCartToast("Ошибка при отправке заявки", 3000, 'error');