{"id":24615,"date":"2024-10-13T12:12:14","date_gmt":"2024-10-13T10:12:14","guid":{"rendered":"https:\/\/www.bakinglab.nl\/?page_id=24615"},"modified":"2024-10-22T09:05:48","modified_gmt":"2024-10-22T07:05:48","slug":"rebook-cancel-workshop","status":"publish","type":"page","link":"https:\/\/www.bakinglab.nl\/en\/rebook-cancel-workshop\/","title":{"rendered":"Cancel and rebook your workshop registration(s)"},"content":{"rendered":"<header class=\"entry-header\">\n<div class=\"newspaper-x-image\"><strong style=\"font-family: 'Source Sans Pro', sans-serif; font-size: 15px;\">I Costs involved to rebook or cancel your ticket registration(s)<br \/>\n<\/strong><\/div>\n<\/header>\n<div class=\"entry-content\">\n<ul>\n<li>Read and check our\u00a0<a href=\"https:\/\/www.bakinglab.nl\/en\/annuleringsbeleid\/\">cancellation and rebook policy<\/a> before starting the process to see if you are eligible to rebook your ticket registration.<\/li>\n<li>Please note that we are not able to refund or rebook late cancellations, but we do offer you some goods in case of a late cancellation.<\/li>\n<li>You can rebook one or more ticket registrations related to your order. Please note that there is always a fee associated with registartions eligible for rebooking.<\/li>\n<li>When you rebook tickets\u00a0 &#8211; in time &#8211; your submitted registrations are cancelled and you receive a voucher ( discount code). Use this discount code to book a workshop at another date.<\/li>\n<li>If you have more questions, please contact us at:\u00a0 us at workshop@bakinglab.nl<\/li>\n<\/ul>\n<p><b>II Instructions to rebook your ticket registration(s) in time<\/b><\/p>\n<ul>\n<li>\u00a0After purchasing one or more ticket(s) for a workshop a <strong>ticket notice\u00a0<\/strong> was sent to you containing this unique ticket\u00a0 registration ID. Search for <strong>e-mail<\/strong> <strong>subject<\/strong>: <strong>Your Baking Lab Amsterdam Tickets<\/strong>, click on print tickets to view your ticket and retrieve the required registration code(s). If you cant\u2019t find the email, it might have ended in your spam folder.<\/li>\n<li>In \u00a0the <strong>example<\/strong> image below the<strong> registration code<\/strong> is: 2933-874-16761<\/li>\n<li>If you are eligible to rebook one or more registration(s) related to your order\u00a0 you can proceed with the rebooking process. You will receive an email associated with the registration code you have submitted. This email will contains instructions\u00a0 to continue the rebooking procedure. After completion, you will receive a <strong>rebooking discount voucher<\/strong> by email, allowing you to book\u00a0 &#8211; with a discount &#8211; a new workshop.<\/li>\n<li><strong>Submit your ticket registration ID below<\/strong> to proceed with rebooking<\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-24632\" src=\"https:\/\/www.bakinglab.nl\/wp-content\/uploads\/2024\/10\/ee_ticket_reg_code_example3-300x296.jpg\" alt=\"\" width=\"527\" height=\"520\" srcset=\"https:\/\/www.bakinglab.nl\/wp-content\/uploads\/2024\/10\/ee_ticket_reg_code_example3-300x296.jpg 300w, https:\/\/www.bakinglab.nl\/wp-content\/uploads\/2024\/10\/ee_ticket_reg_code_example3-768x757.jpg 768w, https:\/\/www.bakinglab.nl\/wp-content\/uploads\/2024\/10\/ee_ticket_reg_code_example3-600x591.jpg 600w, https:\/\/www.bakinglab.nl\/wp-content\/uploads\/2024\/10\/ee_ticket_reg_code_example3-100x100.jpg 100w, https:\/\/www.bakinglab.nl\/wp-content\/uploads\/2024\/10\/ee_ticket_reg_code_example3.jpg 1024w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><strong>III Start the rebooking process.<\/strong><\/div>\n<div><\/div>\n<form id=\"rebook_regcode_submit\" action=\"\/wp-admin\/admin-ajax.php\" method=\"post\">\n<input type=\"hidden\" name=\"action\" value=\"verify_reg_code\">\n<input type=\"hidden\" name=\"confirmation_page_id\" value=\"24667\">\n<input type=\"hidden\" name=\"on_time_page_id\" value=\"24671\">\n<input type=\"hidden\" name=\"late_page_id\" value=\"24676\">\n<input type=\"hidden\" name=\"too_late_page_id\" value=\"24680\">\n<input type=\"hidden\" name=\"no_show_page_id\" value=\"24688\">\n<p><label>Your registration code<br><input name=\"reg_codes[]\" pattern=\"\\d{1,}-\\d{1,}-\\d{1,}-[0-9a-f]{4,}\" required><\/p>\n<p><button type=\"submit\">Proceed<\/button><\/p>\n<\/form>\n<div style=\"display: none;\" id=\"reg_code_options\">\n<form id=\"rebook_regcode_options\" action=\"\/wp-admin\/admin-ajax.php\" method=\"post\">\n<input type=\"hidden\" name=\"confirmation_page_id\" value=\"24667\">\n<input type=\"hidden\" name=\"on_time_page_id\" value=\"24671\">\n<input type=\"hidden\" name=\"late_page_id\" value=\"24676\">\n<input type=\"hidden\" name=\"too_late_page_id\" value=\"24680\">\n<input type=\"hidden\" name=\"no_show_page_id\" value=\"24688\">\n<input type=\"hidden\" name=\"action\" value=\"process_rebook_reg_codes\">\n<h2 style=\"margin-block-start: 4rem;\">Select registrations to rebook or cancel<\/h2>\n<ul style=\"list-style: none; padding-inline-start: 0;\"><\/ul>\n<p><button type=\"submit\">Proceed<\/button><\/p>\n<\/form>\n<\/div>\n<script>\nconst form = document.getElementById('rebook_regcode_submit');\nfunction submitRegCodes(formData) {\n\/\/    const formData = new FormData();\n\n\/\/    regCodes.forEach((regCode) => formData.append('reg_codes[]', regCode));\n    formData.append('action', 'process_rebook_reg_codes');\n\n    fetch(\n        '\/wp-admin\/admin-ajax.php', {\n            method: 'POST',\n            body: formData,\n            headers: {\n            'Accept': 'application\/json'\n        },\n        signal: AbortSignal.timeout(5000),\n        redirect: 'manual'\n    }).then((response) => {\n        if (!response.ok) {\n            alert(`Something went wrong. Please try again. If the issue persists, please contact us at workshop@bakinglab.nl`);\n        }\n\n        return response.json();\n    }).then((json) => {\n        if (!json.success) {\n            if ('message' in json)\n                alert(json.message);\n\n            if ('redirect' in json && json.redirect !== '')\n                location = json.redirect;\n        }\n        else {\n            if ('redirect' in json)\n                location = json.redirect;\n        }\n    }).catch((e) => {\n        alert(e);\n    });    \n}\nconst regCodesForm = document.getElementById('rebook_regcode_options');\nregCodesForm.addEventListener('submit', (e) => {\n    e.preventDefault();\n    submitRegCodes(new FormData(regCodesForm));\n});\nform.addEventListener('submit', (e) => {\n    const reg_code_options = document.getElementById('reg_code_options'),\n        ul = reg_code_options.querySelector('ul');\n    const submitButton = form.querySelector('[type=\"submit\"]');\n\n    submitButton.disabled = true;\n    e.preventDefault();\n\n    ul.querySelectorAll('li').forEach((el) => ul.removeChild(el));\n    reg_code_options.style.display = 'none';\n\n    fetch(form.getAttribute('action'), {\n        method: 'POST',\n        body: new FormData(form)\n    }).then((response) => {    \n        response.json().then((json) => {\n            if ('reg_codes' in json && json.reg_codes.length > 1) {\n                for (const reg_code of json.reg_codes) {\n                    const li = document.createElement('li'),\n                        label = document.createElement('label'),\n                        input = document.createElement('input'),\n                        labelSpan = document.createElement('span');\n\n                    input.type = 'checkbox';\n                    input.name = 'reg_codes[]';\n                    input.value = reg_code;\n\n                    labelSpan.textContent = reg_code;\n                    if (reg_code.toLowerCase().trim() === document.querySelector('#rebook_regcode_submit input[name=\"reg_codes[]\"]').value.toLowerCase().trim())\n                        labelSpan.textContent += ' (you)';\n                    labelSpan.style.marginInlineStart = '1rem';\n\n                    label.appendChild(input);\n                    label.appendChild(labelSpan);\n\n                    li.appendChild(label);\n                    ul.appendChild(li);\n                }\n                submitButton.disabled = false;\n                reg_code_options.style.display = 'block';\n                window.scrollTo({ top: document.getElementById('rebook_regcode_options').offsetTop, behavior: 'smooth'});\n            } else {\n                if ('redirect' in json) {\n                    location.href = json.redirect;\n                } else {\n                    submitButton.disabled = false;\n                    if ('message' in json)\n                        alert(json.message);\n                    if ('success' in json && !json.success)\n                        return false;\n                }\n                submitRegCodes(new FormData(form));\n            }\n        })\/*.catch((error) => {\n            alert('RUH ROH: ' + error + ' Sorry, something went wrong checking your registration code. Please contact us at workshop@bakinglab.nl for assistance.');\n        })*\/;\n    });\n});\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>I Costs involved to rebook or cancel your ticket registration(s) Read and check our\u00a0cancellation and rebook policy before starting the process to see if you are eligible to rebook your ticket registration. Please note that we are not able to refund or rebook late cancellations, but we do offer you some goods in case of [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[255],"tags":[],"class_list":["post-24615","page","type-page","status-publish","hentry","category-rebook"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["nl","en"],"languages":{"nl":{"title":true,"content":true,"excerpt":false},"en":{"title":false,"content":false,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/pages\/24615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/comments?post=24615"}],"version-history":[{"count":28,"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/pages\/24615\/revisions"}],"predecessor-version":[{"id":25848,"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/pages\/24615\/revisions\/25848"}],"wp:attachment":[{"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/media?parent=24615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/categories?post=24615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bakinglab.nl\/en\/wp-json\/wp\/v2\/tags?post=24615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}