{"id":5612,"date":"2026-06-15T15:20:58","date_gmt":"2026-06-15T13:20:58","guid":{"rendered":"https:\/\/preventa.hu\/?page_id=5612"},"modified":"2026-06-15T15:20:58","modified_gmt":"2026-06-15T13:20:58","slug":"withdrawal-from-contract","status":"publish","type":"page","link":"https:\/\/preventa.hu\/en\/withdrawal-from-contract\/","title":{"rendered":"Withdrawal from Contract"},"content":{"rendered":"\t<link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/intl-tel-input\/17.0.8\/css\/intlTelInput.min.css\">\n\t<style>\n\t\t#content.page-wrap { padding-top: 30px !important; padding-bottom: 30px !important; }\n\t\t#withdrawal-form-wrapper { max-width: 600px; margin: 0 auto; padding: 30px; background-color: #fcfcfc; border: 1px solid #eaeaea; border-radius: 8px; }\n\t\t#withdrawal-form-wrapper p.intro-text { font-weight: 500; margin-bottom: 25px; line-height: 1.5; color: #333333; }\n\t\t#withdrawal-form-wrapper label { font-weight: 600; display: block; margin-bottom: 8px; color: #333333; font-size: 14px; }\n\t\t#withdrawal-form-wrapper input { width: 100%; padding: 10px; border: 1px solid #cccccc; border-radius: 4px; box-sizing: border-box; margin-bottom: 20px; background-color: #ffffff; transition: border-color 0.3s ease; font-family: inherit; }\n\t\t#withdrawal-form-wrapper input:focus { outline: none; border-color: #01b8e3; }\n\t\t#withdrawal-submit-btn { width: 100%; padding: 14px 20px; background-color: #01b8e3; color: #ffffff; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; text-transform: uppercase; font-size: 15px; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; margin-top: 10px; }\n\t\t#withdrawal-submit-btn:hover:not(:disabled) { opacity: 0.9; }\n\t\t#withdrawal-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }\n\t\t#withdrawal-response { margin-top: 20px; font-weight: bold; font-size: 15px; text-align: center; }\n\t\t.withdrawal-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #ffffff; border-bottom-color: transparent; border-radius: 50%; box-sizing: border-box; animation: withdrawal-rotation 1s linear infinite; margin-right: 10px; }\n\t\t@keyframes withdrawal-rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }\n\t\t.iti { width: 100%; display: block; margin-bottom: 20px; }\n\t\t#withdrawal-form-wrapper .iti input { padding-left: 52px !important; margin-bottom: 0 !important; }\n\t\t.iti__flag { background-image: url(\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/intl-tel-input\/17.0.8\/img\/flags.png\"); }\n\t\t@media (min-resolution: 2x) {\n\t\t\t.iti__flag { background-image: url(\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/intl-tel-input\/17.0.8\/img\/flags@2x.png\"); }\n\t\t}\n\t<\/style>\n\t\n\t<div id=\"withdrawal-form-wrapper\">\n\t\t<form id=\"withdrawal-form\" method=\"post\" novalidate>\n\t\t\t<p class=\"intro-text\">I hereby give notice that I withdraw from my contract of sale of the following goods:<\/p>\n\n\t\t\t<label for=\"w_order_id\">Order number *<\/label>\n\t\t\t<input type=\"text\" inputmode=\"numeric\" pattern=\"[0-9]*\" id=\"w_order_id\" name=\"order_id\" required>\n\n\t\t\t<label for=\"w_email\">Email address (for verification) *<\/label>\n\t\t\t<input type=\"email\" id=\"w_email\" name=\"email\" required>\n\n\t\t\t<label for=\"w_date\">Date of contract \/ Date of delivery *<\/label>\n\t\t\t<input type=\"date\" id=\"w_date\" name=\"date\" required>\n\n\t\t\t<label for=\"w_prod_name\">Product name(s) *<\/label>\n\t\t\t<input type=\"text\" id=\"w_prod_name\" name=\"prod_name\" required>\n\n\t\t\t<label for=\"w_prod_qty\">Quantity *<\/label>\n\t\t\t<input type=\"number\" id=\"w_prod_qty\" name=\"prod_qty\" min=\"1\" required>\n\n\t\t\t<label for=\"w_cust_name\">Customer name *<\/label>\n\t\t\t<input type=\"text\" id=\"w_cust_name\" name=\"cust_name\" required>\n\n\t\t\t<label for=\"w_cust_address\">Customer address *<\/label>\n\t\t\t<input type=\"text\" id=\"w_cust_address\" name=\"cust_address\" required>\n\n\t\t\t<label for=\"w_phone\">Phone number *<\/label>\n\t\t\t<input type=\"tel\" id=\"w_phone\" name=\"phone\" required>\n\t\t\t\n\t\t\t<button type=\"submit\" id=\"withdrawal-submit-btn\"><span>Submit Declaration<\/span><\/button>\n\t\t\t<div id=\"withdrawal-response\"><\/div>\n\t\t<\/form>\n\t<\/div>\n\t\n\t<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/intl-tel-input\/17.0.8\/js\/intlTelInput.min.js\"><\/script>\n\t<script type=\"text\/javascript\">\n\t\tjQuery(document).ready(function($) {\n\t\t\tvar submitBtn = $('#withdrawal-submit-btn');\n\t\t\tvar originalBtnHtml = submitBtn.html();\n\t\t\tvar loadingHtml = '<span class=\"withdrawal-spinner\"><\/span><span>Processing...<\/span>';\n\t\t\tvar lang = 'en';\n\t\t\tvar initialC = 'hu';\n\t\t\t\n\t\t\tif (lang === 'de') {\n\t\t\t\tinitialC = 'de';\n\t\t\t} else if (lang === 'en') {\n\t\t\t\tinitialC = 'gb';\n\t\t\t}\n\n\t\t\tvar phoneInput = document.querySelector(\"#w_phone\");\n\t\t\tvar iti = window.intlTelInput(phoneInput, {\n\t\t\t\tinitialCountry: initialC,\n\t\t\t\tutilsScript: 'https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/intl-tel-input\/17.0.8\/js\/utils.js'\n\t\t\t});\n\n\t\t\t$('#withdrawal-form').on('submit', function(e) {\n\t\t\t\te.preventDefault();\n\t\t\t\t\n\t\t\t\tvar form = this;\n\t\t\t\tif (!form.checkValidity()) {\n\t\t\t\t\tform.reportValidity();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (!iti.isValidNumber()) {\n\t\t\t\t\talert('Please enter a valid phone number with the country code!');\n\t\t\t\t\tphoneInput.focus();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tvar fullPhone = iti.getNumber();\n\n\t\t\t\tvar responseDiv = $('#withdrawal-response');\n\t\t\t\tresponseDiv.html('').css('color', 'inherit');\n\t\t\t\tsubmitBtn.prop('disabled', true).html(loadingHtml);\n\n\t\t\t\t$.ajax({\n\t\t\t\t\turl: 'https:\/\/preventa.hu\/wp-admin\/admin-ajax.php',\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\tdata: {\n\t\t\t\t\t\taction: 'handle_woocommerce_withdrawal',\n\t\t\t\t\t\torder_id: $('#w_order_id').val(),\n\t\t\t\t\t\temail: $('#w_email').val(),\n\t\t\t\t\t\tphone: fullPhone,\n\t\t\t\t\t\tdate: $('#w_date').val(),\n\t\t\t\t\t\tprod_name: $('#w_prod_name').val(),\n\t\t\t\t\t\tprod_qty: $('#w_prod_qty').val(),\n\t\t\t\t\t\tcust_name: $('#w_cust_name').val(),\n\t\t\t\t\t\tcust_address: $('#w_cust_address').val(),\n\t\t\t\t\t\tlang: lang\n\t\t\t\t\t},\n\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\tsubmitBtn.prop('disabled', false).html(originalBtnHtml);\n\t\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t\tresponseDiv.html('Your withdrawal declaration has been successfully received. A confirmation email has been sent.').css('color', '#16a34a');\n\t\t\t\t\t\t\t$('#withdrawal-form')[0].reset();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresponseDiv.html('Please check the entered data. The specified order number and email address combination could not be found.').css('color', '#dc2626');\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\terror: function() {\n\t\t\t\t\t\tsubmitBtn.prop('disabled', false).html(originalBtnHtml);\n\t\t\t\t\t\tresponseDiv.html('Hiba t\u00f6rt\u00e9nt a kommunik\u00e1ci\u00f3 sor\u00e1n.').css('color', '#dc2626');\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t<\/script>\n\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-5612","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/preventa.hu\/en\/wp-json\/wp\/v2\/pages\/5612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/preventa.hu\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/preventa.hu\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/preventa.hu\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/preventa.hu\/en\/wp-json\/wp\/v2\/comments?post=5612"}],"version-history":[{"count":1,"href":"https:\/\/preventa.hu\/en\/wp-json\/wp\/v2\/pages\/5612\/revisions"}],"predecessor-version":[{"id":5613,"href":"https:\/\/preventa.hu\/en\/wp-json\/wp\/v2\/pages\/5612\/revisions\/5613"}],"wp:attachment":[{"href":"https:\/\/preventa.hu\/en\/wp-json\/wp\/v2\/media?parent=5612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}