{"id":2010,"date":"2025-05-02T21:49:29","date_gmt":"2025-05-02T21:49:29","guid":{"rendered":"https:\/\/oceantourshurghada.com\/transfer-services\/"},"modified":"2025-05-16T14:39:29","modified_gmt":"2025-05-16T14:39:29","slug":"transfer-services","status":"publish","type":"page","link":"https:\/\/oceantourshurghada.com\/de\/transfer-services\/","title":{"rendered":"Transfer Services"},"content":{"rendered":"\n<div class=\"wp-block-cover\"><img decoding=\"async\" width=\"980\" height=\"376\" loading=\"lazy\" class=\"wp-block-cover__image-background wp-image-1399\" alt=\"\" src=\"https:\/\/oceantourshurghada.com\/wp-content\/uploads\/2025\/05\/Canaltransfers-980x376-1.png\" data-object-fit=\"cover\" srcset=\"https:\/\/oceantourshurghada.com\/wp-content\/uploads\/2025\/05\/Canaltransfers-980x376-1.png 980w, https:\/\/oceantourshurghada.com\/wp-content\/uploads\/2025\/05\/Canaltransfers-980x376-1-300x115.png 300w, https:\/\/oceantourshurghada.com\/wp-content\/uploads\/2025\/05\/Canaltransfers-980x376-1-768x295.png 768w, https:\/\/oceantourshurghada.com\/wp-content\/uploads\/2025\/05\/Canaltransfers-980x376-1-156x60.png 156w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"><\/span><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\n<h2 class=\"wp-block-heading has-text-align-center has-white-color has-text-color has-link-color has-large-font-size wp-elements-72ea6d166a1c69b30f4f29e61e0ab16c\">BUCHEN SIE IHREN TRANSFER MIT UNS<\/h2>\n<\/div><\/div>\n\n<p class=\"\"><\/p>\n\n<div class=\"transfer_layout wp-block-columns is-not-stacked-on-mobile is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:60%\">\n<p class=\"\">    <style>\n\t\t.blur-layer {\n            position: absolute;\n            top: 0; left: 0;\n            width: 100%;\n\t\t\theight: 110%;\n            backdrop-filter: blur(1px);\n            background: rgba(255, 255, 255, 0.6);\n            z-index: 2;\n            display: flex;\n\t\t\tflex-direction: column;\n            justify-content: center;\n            align-items: center;\n\t\t}\n\t.blur-layer p{\n    font-size: 18px;\n    font-weight: bold;\n\t\ttext-align: center;\n\t\t}\n\t\t.login-button{\n\tfont-size: 18px;\n    line-height: 1.2;\n    font-weight: bold;\n    color: white !important;\n    font-family: var(--secondary-font);\n    background: var(--primary-color);\n    border-radius: 50px;\n    border: 1px solid var(--primary-color);\n    padding: 16px 32px;\n    text-shadow: none;\n    transition: linear 0.2s;\n    outline: none;\n    text-decoration: none !important;\n    z-index: 3;\n\t\t}\n\t\t.login-button:hover{\n\t\t\tcolor: var(--primary-color) !important;\n\t\t\tbackground: none !important;\n\t\t}\n\n\t\t}\n    <\/style>\n\n<dir style=\"\n    margin: 0;\n    padding: 0;\">\n<div style=\"position: relative;\">\n\t\n    <div class=\"blur-layer\">\n            \t\t\t<p>\n\t\t\t M\u00f6chten Sie Ihren Transfer jetzt buchen?\t\t\t<\/p>\n            <a href=\"https:\/\/oceantourshurghada.com\/de\/my-account\/\" class=\"login-button\" >\n                Einloggen            <\/a>\n        <\/div>\n    \n    <form id=\"transfer-booking-form\" style=\"filter: blur(5px); pointer-events: none;\">\n        <!-- \u0628\u0627\u0642\u064a \u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0641\u0648\u0631\u0645 \u0628\u062f\u0648\u0646 \u062a\u0639\u062f\u064a\u0644 -->\n        <label>Vorname:\n            <input type=\"text\" name=\"billing_fname\" value=\"\" readonly>\n        <\/label><br>\n        <label>Nachname:\n            <input type=\"text\" name=\"billing_lname\" value=\"\">\n        <\/label><br>\t\n        <label>E-Mail:\n            <input type=\"email\" name=\"billing_email\" value=\"\" readonly>\n        <\/label><br>\n        <label>Telefon:\n            <input type=\"tel\" name=\"billing_phone\" required>\n        <\/label><br>\n\n        <label>Abholort: <input type=\"text\" name=\"pickup\" required><\/label><br>\n        <label>Reiseziele:\n            <select name=\"destination\" id=\"destination\" required>\n                <option value=\"\">Ziel ausw\u00e4hlen<\/option>\n                <option value=\"Hurghada\">Hotel In Hurghada<\/option>\n                <option value=\"Sahl Hashish\">Sahl Hashish<\/option>\n                <option value=\"Makadi\">Makadi<\/option>\n                <option value=\"Elgouna\">Elgouna<\/option>\n                <option value=\"Safaga\/somabay\">Safaga\/somabay<\/option>\n            <!--    <option value=\"Marsa Alam\">Marsa Alam<\/option> -->\n            <\/select>\n        <\/label><br>\n        <label>Datum: <input type=\"date\" name=\"trip_date\" required><\/label><br>\n        <label>Zeit: <input type=\"time\" name=\"trip_time\" required><\/label><br>\n\n        <label>Personen: <input type=\"number\" name=\"persons\" id=\"persons\" min=\"1\" max=\"7\" required><\/label><br>\n\n        <input type=\"hidden\" name=\"vehicle_type\" id=\"vehicle_type\" value=\"\">\n\n        <label>Reiseart:\n            \n<select name=\"travel_type\" id=\"travel_type\" required>\n    <option value=\"One Way Travel\">Einweg Reisen<\/option>\n    <option value=\"Return Way Travel\">R\u00fcckreise<\/option>\n<\/select>\n        <\/label><br>\n\n        <label>Kommentar: <textarea name=\"comment\"><\/textarea><\/label><br>\n        <p>Gesamtpreis: <span id=\"calculated-price\">--<\/span> \u20ac<\/p>\n        <button type=\"submit\">Jetzt buchen<\/button>\n    <\/form>\n  <\/div>\n    <script>\n    document.addEventListener('DOMContentLoaded', function () {\n        const form = document.getElementById('transfer-booking-form');\n        const priceSpan = document.getElementById('calculated-price');\n        const vehicleTypeInput = document.getElementById('vehicle_type');\n\n        const prices = {\n            \"Hurghada\": { limousine: 15, minibus: 20 },\n            \"Sahl Hashish\": { limousine: 20, minibus: 25 },\n            \"Makadi\": { limousine: 20, minibus: 25 },\n            \"Elgouna\": { limousine: 25, minibus: 30 },\n            \"Safaga\/somabay\": { limousine: 30, minibus: 35 },\n           \/\/ \"Marsa Alam\": { limousine: 0, minibus: 0 }\n        };\n\n        function calculatePrice(destination, persons, travel_type) {\n            let type = persons <= 3 ? 'limousine' : 'minibus';\n            vehicleTypeInput.value = type === 'limousine' ? 'Private Limousine' : 'MiniBus';\n\n            let base = prices[destination] ? prices[destination][type] : 0;\n            if (base === 0) return \"Auf Anfrage\"; \/\/ On request\n            if (travel_type === \"Return Way Travel\") base *= 1.8;\n\n            return base.toFixed(2);\n        }\n\n        form.addEventListener('input', () => {\n            const destination = form.destination.value;\n            const persons = parseInt(form.persons.value) || 1;\n            const travel_type = form.travel_type.value;\n\n            const price = calculatePrice(destination, persons, travel_type);\n            priceSpan.textContent = price;\n        });\n\n        form.addEventListener('submit', async function (e) {\n            e.preventDefault();\n\n            const data = new FormData(form);\n            const price = priceSpan.textContent;\n            data.append('action', 'save_transfer_booking');\n            data.append('price', price);\n\n            const response = await fetch('https:\/\/oceantourshurghada.com\/wp-admin\/admin-ajax.php', {\n                method: 'POST',\n                body: data\n            });\n\n            const result = await response.json();\n\t\t\tif (result.success) {\n\t\t\t\tconst bookingId = result.data.booking_id;\n\t\t\t\tif (bookingId) {\n        \/\/ \u062a\u062d\u062f\u064a\u062f \u0627\u0644\u0644\u063a\u0629 \u0645\u0646 \u0645\u0633\u0627\u0631 \u0627\u0644\u0631\u0627\u0628\u0637 \u0627\u0644\u062d\u0627\u0644\u064a\n        const currentPath = window.location.pathname;\n        const langMatch = currentPath.match(\/^\\\/([a-z]{2})\\\/\/);\n        const langPrefix = langMatch ? `\/${langMatch[1]}` : '';\n\n        \/\/ \u0627\u0644\u062a\u062d\u0648\u064a\u0644 \u0644\u0644\u0635\u0641\u062d\u0629 \u0645\u0639 \u0645\u0631\u0627\u0639\u0627\u0629 \u0627\u0644\u0644\u063a\u0629\n        window.location.href = `${langPrefix}\/booking-confirmation\/?booking_id=${bookingId}`;\n    } else {\n        alert('Booking saved but ID is missing!');\n    }\n} else {\n    alert('Error: ' + (result.data?.message || 'Something went wrong.'));\n}\n        });\n    });\n    <\/script>\n    <\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"405\" height=\"502\" loading=\"lazy\" src=\"https:\/\/oceantourshurghada.com\/wp-content\/uploads\/2025\/05\/Screenshot-2025-05-15-215910.png\" alt=\"\" class=\"wp-image-1993\" srcset=\"https:\/\/oceantourshurghada.com\/wp-content\/uploads\/2025\/05\/Screenshot-2025-05-15-215910.png 405w, https:\/\/oceantourshurghada.com\/wp-content\/uploads\/2025\/05\/Screenshot-2025-05-15-215910-242x300.png 242w, https:\/\/oceantourshurghada.com\/wp-content\/uploads\/2025\/05\/Screenshot-2025-05-15-215910-48x60.png 48w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><\/figure>\n\n\n\n<figure class=\"is-style-regular wp-block-table\"><\/figure>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nf_dc_page":"","footnotes":""},"class_list":["post-2010","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/oceantourshurghada.com\/de\/wp-json\/wp\/v2\/pages\/2010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oceantourshurghada.com\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oceantourshurghada.com\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oceantourshurghada.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oceantourshurghada.com\/de\/wp-json\/wp\/v2\/comments?post=2010"}],"version-history":[{"count":1,"href":"https:\/\/oceantourshurghada.com\/de\/wp-json\/wp\/v2\/pages\/2010\/revisions"}],"predecessor-version":[{"id":2011,"href":"https:\/\/oceantourshurghada.com\/de\/wp-json\/wp\/v2\/pages\/2010\/revisions\/2011"}],"wp:attachment":[{"href":"https:\/\/oceantourshurghada.com\/de\/wp-json\/wp\/v2\/media?parent=2010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}