{"id":23074,"date":"2025-03-31T18:55:50","date_gmt":"2025-03-31T18:55:50","guid":{"rendered":"https:\/\/www.tourug.com\/?page_id=23074"},"modified":"2025-05-11T14:17:33","modified_gmt":"2025-05-11T14:17:33","slug":"business-registration","status":"publish","type":"page","link":"https:\/\/www.tourug.com\/?page_id=23074","title":{"rendered":"Business Registration"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"23074\" class=\"elementor elementor-23074\">\n\t\t\t\t<div class=\"elementor-element elementor-element-09d9a8d e-flex e-con-boxed e-con e-parent\" data-id=\"09d9a8d\" data-element_type=\"container\" data-settings=\"{&quot;wcf_enable_cursor_hover_effect_text&quot;:&quot;View&quot;,&quot;wcf-animation&quot;:&quot;none&quot;,&quot;wcf_pin_breakpoint&quot;:&quot;mobile&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-69de7ac elementor-widget elementor-widget-shortcode\" data-id=\"69de7ac\" data-element_type=\"widget\" data-settings=\"{&quot;wcf-animation&quot;:&quot;none&quot;}\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><div class=\"business-registration-container\" id=\"tour-form-container\">\n    <h3>Tourug Service Registration<\/h3>\n    <div class=\"business-form-wrapper\">\n        <form id=\"business-registration-form\" class=\"business-registration-form\">\n            <input type=\"hidden\" id=\"business_registration_nonce\" name=\"business_registration_nonce\" value=\"78f5eb7c86\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F23074\" \/>\n            <!-- User Type Selection Section -->\n            <div class=\"register-section\">\n                <div class=\"section-title\">\n                    <span>Select Registration Type<\/span>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"user_type\" class=\"required-field\">Registration Type<\/label>\n                    <select id=\"user_type\" name=\"user_type\" class=\"form-control\" required>\n                        <option value=\"\">-- Select Type --<\/option>\n                        <option value=\"tour_guide\" data-fee=\"100000\">Tour Guide - Individual<\/option>\n                        <option value=\"agency_standard\" data-fee=\"150000\">Tour Agency - Standard<\/option>\n                        <!--option value=\"agency_hotel\" data-fee=\"150000\">Hotel \/ Lodge<\/option-->\n                       <!--option value=\"agency_tour\" data-fee=\"150000\">Tour Vehicle Rental Agency<\/option-->\n                        <!--option value=\"agency_premium\" data-fee=\"300000\">Tour Agency - Premium<\/option-->\n                    <\/select>\n                    <input type=\"hidden\" name=\"subscription_fee\" id=\"subscription_fee\" value=\"\">\n                <\/div>\n\n                <!-- Subscription Details Display -->\n                <div id=\"subscription-info\" class=\"subscription-info-card\" style=\"display: none;\">\n                    <div class=\"subscription-header\">\n                        <h4 id=\"plan-name\">Plan Details<\/h4>\n                        <div class=\"subscription-price\">\n                            <span class=\"price-amount\" id=\"fee-display\">UGX 0<\/span>\n                            <span class=\"price-period\">\/year<\/span>\n                        <\/div>\n                    <\/div>\n                    \n                    <div class=\"subscription-features\">\n                        <h5>Included Services:<\/h5>\n                        <ul id=\"features-list\">\n                            <!-- Features will be populated by JavaScript -->\n                        <\/ul>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <!-- Company Information Section (Hidden for Tour Guides) -->\n            <div class=\"register-section\" id=\"company-section\">\n                <div class=\"section-title\">\n                    <span>Company Information<\/span>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"business_name\" id=\"business-name-label\" class=\"required-field agency-required\">\n    Tour Company Name\n<\/label>\n                    <input type=\"text\" name=\"business_name\" id=\"business_name\">\n                <\/div>\n                <div class=\"form-field agency-tour-only\" style=\"display:none;\">\n    <label for=\"street_address\">Street Address<\/label>\n    <input type=\"text\" name=\"street_address\" id=\"street_address\" class=\"required-field agency-required\">\n<\/div>\n                        <div class=\"form-field hotel-only\" style=\"display:none;\">\n    <label for=\"hotel_star_rating\" class=\"required-field\">Hotel Class<\/label>\n    <select name=\"hotel_star_rating\" id=\"hotel_star_rating\">\n        <option value=\"\">-- Select Class --<\/option>\n        <option value=\"2 Star\">2 Star<\/option>\n        <option value=\"3 Star\">3 Star<\/option>\n        <option value=\"4 Star\">4 Star<\/option>\n        <option value=\"5 Star\">5 Star<\/option>\n    <\/select>\n<\/div>\n                        <div class=\"form-field\">\n                    <label for=\"license_number\">Regulator License Number<\/label>\n                    <input type=\"text\" name=\"license_number\" id=\"license_number\">\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"tin\">Tax Identification Number (TIN)<\/label>\n                    <input type=\"text\" name=\"tin\" id=\"tin\">\n                <\/div>\n\n               \n                        <div class=\"form-field\">\n                    <label for=\"website_address\" class=\"required-field agency-required\">Website Address<\/label>\n                    <input type=\"text\" name=\"website_address\" id=\"website_address\">\n                <\/div>\n                <div class=\"form-field agency-tour-only\" style=\"display:none;\">\n    <label for=\"agency_country\" class=\"required-field\">Country<\/label>\n    <select name=\"agency_country\" id=\"agency_country\">\n        <option value=\"\">-- Select Country --<\/option>\n        <option value=\"Uganda\">Uganda<\/option>\n        <option value=\"Kenya\">Kenya<\/option>\n        <option value=\"Tanzania\">Tanzania<\/option>\n        <option value=\"Rwanda\">Rwanda<\/option>\n        <option value=\"Burundi\">Burundi<\/option>\n    <\/select>\n<\/div>\n\n\n\n\n\n                        <div class=\"form-field\">\n                    <label for=\"google_maps\" id=\"google-maps-label\" class=\"required-field agency-required\">\n    Office Location on Google Maps\n<\/label>\n                    <input type=\"text\" name=\"google_maps\" id=\"google_maps\">\n                <\/div>\n                          <div class=\"form-field\">\n                    <label for=\"company_profile\" id=\"company-profile-label\">\n    Company Profile\n<\/label>\n                    <input type=\"text\" name=\"company_profile\" id=\"company_profile\">\n                <\/div>\n                <div class=\"form-field agency-tour-only\" style=\"display:none;\">\n    <label for=\"profile_image\">Agency Profile Image<\/label>\n    <input type=\"file\" name=\"profile_image\" id=\"profile_image\" accept=\"image\/*\">\n<\/div>\n            <\/div>\n\n            <!-- Personal\/Contact Information Section -->\n            <div class=\"register-section\">\n                <div class=\"section-title\">\n                    <span id=\"contact-section-title\">Contact Information<\/span>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"contact_person\" class=\"required-field\">\n                        <span class=\"label-company\">Contact Person Name<\/span>\n                        <span class=\"label-guide\" style=\"display: none;\">Full Name<\/span>\n                    <\/label>\n                    <input type=\"text\" name=\"contact_person\" id=\"contact_person\" required>\n                <\/div>\n\n                <div class=\"form-field\" id=\"designation-field\">\n                    <label for=\"contact_designation\" class=\"required-field agency-required\">Contact Person Designation<\/label>\n                    <input type=\"text\" name=\"contact_designation\" id=\"contact_designation\">\n                <\/div>\n                        <div class=\"form-field\">\n                    <label for=\"telephone_number\" class=\"required-field\" >Telephone Number (Office)<\/label>\n                    <input type=\"tel\" name=\"telephone_number\" id=\"telephone_number\" required>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"email\" class=\"required-field\">Email Address<\/label>\n                    <input type=\"email\" name=\"email\" id=\"email\" required>\n                <\/div>\n            <\/div>\n\n            <!-- Business Address Section -->\n            <div class=\"register-section\">\n                <div class=\"section-title\">\n                    <span id=\"address-section-title\">Business Address<\/span>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"business_address1\" class=\"required-field\">Address Line 1<\/label>\n                    <input type=\"text\" name=\"business_address1\" id=\"business_address1\" required>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"business_address2\">Address Line 2<\/label>\n                    <input type=\"text\" name=\"business_address2\" id=\"business_address2\">\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"business_city\" id=\"city-label\" class=\"required-field\">City<\/label>\n                    <input type=\"text\" name=\"business_city\" id=\"business_city\" required>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"business_country\" class=\"required-field\">Country<\/label>\n                    <select id=\"business_country\" name=\"business_country\" class=\"form-control\" required>\n                        <option value=\"\">-- Select Country --<\/option>\n                        <option value=\"Uganda\" selected>Uganda<\/option>\n                        <option value=\"Kenya\">Kenya<\/option>\n                        <option value=\"Tanzania\">Tanzania<\/option>\n                        <option value=\"Rwanda\">Rwanda<\/option>\n                        <option value=\"Burundi\">Burundi<\/option>\n                        <option value=\"South Sudan\">South Sudan<\/option>\n                    <\/select>\n                <\/div>\n            <\/div>\n\n            <!-- Login Information Section -->\n            <div class=\"register-section\">\n                <div class=\"section-title\">\n                    <span>Account Login Information<\/span>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"mobile_phone\" class=\"required-field\">Mobile phone<\/label>\n                    <input type=\"tel\" name=\"mobile_phone\" id=\"mobile_phone\" required>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"username\" class=\"required-field\">Username<\/label>\n                    <input type=\"text\" name=\"username\" id=\"username\" required>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"password\" class=\"required-field\">Password<\/label>\n                    <input type=\"password\" name=\"password\" id=\"password\" required>\n                    <div class=\"password-meter\"><div id=\"meterBar\" class=\"password-meter-bar\"><\/div><\/div>\n                    <div id=\"passwordError\" class=\"error\"><\/div>\n                <\/div>\n\n                <div class=\"form-field\">\n                    <label for=\"confirm_password\" class=\"required-field\">Confirm Password<\/label>\n                    <input type=\"password\" name=\"confirm_password\" id=\"confirm_password\" required>\n                    <div id=\"confirmPasswordError\" class=\"error\"><\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"form-field terms-checkbox\">\n    <label class=\"checkbox-label\">\n        <input type=\"checkbox\" name=\"agree_terms\" id=\"agree_terms\" required>\n\n        <span id=\"terms-text\">\n            I agree to the\n            <a href=\"https:\/\/www.tourug.com\/terms-and-conditions\/\" target=\"_blank\">\n                Terms and Conditions\n            <\/a> for tour operators and hotels\n        <\/span>\n    <\/label>\n<\/div>\n\n            <div class=\"form-actions\">\n                <button type=\"submit\" name=\"business_register_submit\" id=\"business-register-submit\">Register<\/button>\n                <a href=\"https:\/\/www.tourug.com\" class=\"cancel-button\">Cancel<\/a>\n            <\/div>\n        <\/form>\n    <\/div>\n         \n\n    <!-- OTP Verification Popup -->\n    <div id=\"otp-verification-modal\" class=\"otp-modal\">\n        <div class=\"otp-modal-content\">\n            <span class=\"otp-close\">&times;<\/span>\n            <h3>Verify Your Contact Details<\/h3>\n            <p>We've sent a verification code to your mobile number.<\/p>\n\n            <div class=\"otp-form\">\n                <div class=\"otp-field\">\n                    <label for=\"otp-input\">Enter the 6-digit OTP:<\/label>\n                    <input type=\"text\" id=\"otp-input\" maxlength=\"6\" pattern=\"[0-9]*\" inputmode=\"numeric\">\n                <\/div>\n                <div class=\"otp-error\" id=\"otp-error\"><\/div>\n                <div class=\"otp-actions\">\n                    <button id=\"verify-otp-button\">Verify OTP<\/button>\n                    <button id=\"resend-otp-button\">Resend OTP<\/button>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<div id=\"error-popup\" class=\"error-popup\">\n    <div class=\"error-popup-content\">\n        <p class=\"close-btn\" onclick=\"closeErrorPopup()\">&times;<\/p>\n        <p id=\"error-message\">Error message goes here<\/p>\n    <\/div>\n<\/div>\n\n<style>\n.subscription-info-card {\n    background: #f8f9fa;\n    border: 2px solid #e9ecef;\n    border-radius: 8px;\n    padding: 20px;\n    margin-top: 15px;\n}\n\n.subscription-header {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    margin-bottom: 20px;\n    padding-bottom: 15px;\n    border-bottom: 2px solid #dee2e6;\n}\n\n.subscription-header h4 {\n    margin: 0;\n    color: #2c3e50;\n    font-size: 1.3em;\n}\n\n.subscription-price {\n    text-align: right;\n}\n\n.price-amount {\n    font-size: 1.8em;\n    font-weight: bold;\n    color: #27ae60;\n    display: block;\n}\n\n.price-period {\n    font-size: 0.9em;\n    color: #7f8c8d;\n}\n\n.subscription-features h5 {\n    color: #34495e;\n    margin-bottom: 12px;\n    font-size: 1.1em;\n}\n\n.subscription-features ul {\n    list-style: none;\n    padding: 0;\n    margin: 0;\n}\n\n.subscription-features li {\n    padding: 8px 0;\n    padding-left: 25px;\n    position: relative;\n    color: #555;\n    line-height: 1.6;\n}\n\n.subscription-features li:before {\n    content: \"\u2713\";\n    position: absolute;\n    left: 0;\n    color: #27ae60;\n    font-weight: bold;\n    font-size: 1.2em;\n}\n<\/style>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n    const termsText = document.getElementById('terms-text');\n\tconst cityLabel = document.getElementById('city-label');\n    const businessNameLabel = document.getElementById('business-name-label');\n    const googleMapsLabel = document.getElementById('google-maps-label');\n    const companyProfileLabel = document.getElementById('company-profile-label');\n    const hotelFields = document.querySelectorAll('.hotel-only');\n    const userTypeSelect = document.getElementById('user_type');\n    const subscriptionInfo = document.getElementById('subscription-info');\n    const feeDisplay = document.getElementById('fee-display');\n    const planName = document.getElementById('plan-name');\n    const featuresList = document.getElementById('features-list');\n    const subscriptionFeeInput = document.getElementById('subscription_fee');\n\n    const companySection = document.getElementById('company-section');\n    const designationField = document.getElementById('designation-field');\n    const businessNameField = document.getElementById('business_name');\n    const contactDesignationField = document.getElementById('contact_designation');\n\n    const contactSectionTitle = document.getElementById('contact-section-title');\n    const addressSectionTitle = document.getElementById('address-section-title');\n\n    const labelCompany = document.querySelector('.label-company');\n    const labelGuide = document.querySelector('.label-guide');\n    const agencyTourFields = document.querySelectorAll('.agency-tour-only');\n    const companySectionTitle = document.querySelector('#company-section .section-title span');\n    const businessAddressSection = document.querySelector('#address-section-title').closest('.register-section');\n\n    \/\/ PLAN DETAILS\n    const planDetails = {\n        tour_guide: {\n            name: 'Tour Guide - Individual',\n            fee: 100000,\n            currency: 'UGX',\n            features: [\n                'Personal profile on Tourug platform',\n                'Access to budget, midrange requests for tours in East Africa',\n                'Direct communication with tourists',\n                'Customer reviews and ratings'\n            ]\n        },\n        agency_standard: {\n            name: 'Tour Agency - Standard',\n            fee: 150000,\n            currency: 'UGX',\n            features: [\n                'Company profile on Tourug platform',\n                'Access to budget, midrange, and luxury requests for tours in East Africa',\n                'Direct communication with tourists',\n                'Event management with ticketing service',\n                'Customer reviews and ratings'\n            ]\n        }\n        \/*\n        agency_hotel: {\n            name: 'Hotel \/ Lodge',\n            fee: 150000,\n            currency: 'UGX',\n            features: [\n                'Hotel profile on Tourug app',\n                'Visibility in Tourug app hotel search results',\n                'Feature in Tourug app hotel recommendations',\n                'Online customer booking and payment service',\n                'Event Management with ticketing service',\n                'Customer reviews and ratings'\n            ]\n        },\n        agency_tour: {\n            name: 'Tour Vehicle Rental Agency',\n            fee: 150000,\n            currency: 'UGX',\n            features: [\n                'Company profile on Tourug platform',\n                'Visibility in Tourug app vehicle search results',\n                'Direct communication with clients',\n                'Customer reviews and ratings'\n            ]\n        }\n        \nagency_premium: {\n    name: 'Tour Agency - Premium',\n    fee: 300000,\n    currency: 'UGX',\n    features: [\n        'Access to budget, midrange and luxury tourism requests through the Tourug app',\n        'Company profile on Tourug app',\n        'Direct communication with tourists',\n        'Events management system',\n        'Online ticket sales with payment integration',\n        'Customer reviews and ratings'\n    ]\n}\n*\/\n    };\n\n\n\n    \/\/ DISPLAY PLAN INFO\n    function displayPlan(planKey) {\n        const plan = planDetails[planKey];\n        planName.textContent = plan.name;\n        feeDisplay.textContent = plan.currency + ' ' + (plan.currency === 'USD' ? plan.fee.toFixed(2) : plan.fee.toLocaleString());\n        subscriptionFeeInput.value = plan.fee;\n\n        featuresList.innerHTML = '';\n        plan.features.forEach(feature => {\n            const li = document.createElement('li');\n            li.textContent = feature;\n            featuresList.appendChild(li);\n        });\n\n        subscriptionInfo.style.display = 'block';\n    }\n\n\n\n    \/\/ Default plan\n    \n\n    userTypeSelect.addEventListener('change', function() {\n        const selectedType = this.value;\n        if (!selectedType) {\n            subscriptionInfo.style.display = 'none';\n            return;\n        }\n\n        displayPlan(selectedType);\n\n        if (selectedType === 'tour_guide') {\n            companySection.style.display = 'none';\n            designationField.style.display = 'none';\n            businessNameField.removeAttribute('required');\n            contactDesignationField.removeAttribute('required');\n            contactSectionTitle.textContent = 'Personal Information';\n            addressSectionTitle.textContent = 'Address';\n            labelCompany.style.display = 'none';\n            labelGuide.style.display = 'inline';\n        }else if (selectedType === 'agency_standard') {\n        businessNameLabel.textContent = 'Tour Company Name';\n        cityLabel.textContent = 'City';\n        googleMapsLabel.textContent = 'Office Location on Google Maps';\n        companyProfileLabel.textContent = 'Company Profile';\n        companySection.style.display = 'block';\n        designationField.style.display = 'block';\n\n        hotelFields.forEach(field => field.style.display = 'none');\n\n        businessNameField.setAttribute('required','required');\n        contactDesignationField.setAttribute('required','required');\n\n        contactSectionTitle.textContent = 'Contact Information';\n        addressSectionTitle.textContent = 'Business Address';\n\n        labelCompany.style.display = 'inline';\n        labelGuide.style.display = 'none';\n        termsText.innerHTML = `\n    I agree to the\n    <a href=\"https:\/\/www.tourug.com\/terms-and-conditions\/\" target=\"_blank\">Terms and Conditions<\/a>\n    for tour operators and hotels\n`;\n\n}else if (selectedType === 'agency_hotel') {\n    cityLabel.textContent = 'City or National Park';\n    businessNameLabel.textContent = 'Hotel \/ Lodge Name';\n    googleMapsLabel.textContent = 'Hotel Location on Google Maps';\n    companyProfileLabel.textContent = 'Hotel Profile';\n    companySection.style.display = 'block';\n    designationField.style.display = 'block';\n\n    hotelFields.forEach(field => field.style.display = 'block');\n\n    businessNameField.setAttribute('required','required');\n    contactDesignationField.setAttribute('required','required');\n\n    contactSectionTitle.textContent = 'Hotel Contact Information';\n    addressSectionTitle.textContent = 'Hotel Address';\n\n    labelCompany.style.display = 'inline';\n    labelGuide.style.display = 'none';\n    termsText.innerHTML = `\n    I agree to the\n    <a href=\"https:\/\/www.tourug.com\/terms-and-conditions\/\" target=\"_blank\">Terms and Conditions<\/a>\n    for hotels and lodges\n`;\n} else if (selectedType === 'agency_tour') {\n    companySectionTitle.textContent = 'Agency Information';\n\n    businessNameLabel.textContent = 'Agency Name';\n    googleMapsLabel.textContent = 'Agency Location on Google Maps';\n    companyProfileLabel.textContent = 'Agency Profile';\n\n    companySection.style.display = 'block';\n    designationField.style.display = 'block';\n\n    \/\/ Hide hotel fields\n    hotelFields.forEach(field => field.style.display = 'none');\n\n    \/\/ Show agency-specific fields\n    agencyTourFields.forEach(field => field.style.display = 'block');\n\n    \/\/ Hide business address section\n    businessAddressSection.style.display = 'none';\n\n    businessNameField.setAttribute('required','required');\n    contactDesignationField.setAttribute('required','required');\n\n    contactSectionTitle.textContent = 'Contact Information';\n\n    labelCompany.style.display = 'inline';\n    labelGuide.style.display = 'none';\n\n    \/\/ Hide Regulator License & TIN only for agency_tour\n    document.getElementById('license_number').closest('.form-field').style.display = 'none';\n    document.getElementById('tin').closest('.form-field').style.display = 'none';\n\n    \/\/ Update website label\n    document.getElementById('website_address').previousElementSibling.textContent = 'Website or Social Media Address';\n    termsText.innerHTML = `\n    I agree to the\n    <a href=\"https:\/\/www.tourug.com\/terms-and-conditions\/\" target=\"_blank\">Terms and Conditions<\/a>\n    for vehicle rental agencies\n`;\n}\n    });\n    const form = document.getElementById('business-registration-form');\n\n    form.addEventListener('submit', function (e) {\n        e.preventDefault();\n\n        const submitBtn = document.getElementById('business-register-submit');\n        submitBtn.disabled = true;\n        submitBtn.innerText = 'Processing...';\n\n        const formData = new FormData();\n\n        \/\/ \u2705 FORCE ALL FIELDS MANUALLY (CRITICAL FIX)\n        formData.append('user_type', document.getElementById('user_type').value);\n        formData.append('subscription_fee', document.getElementById('subscription_fee').value);\n        formData.append('business_name', document.getElementById('business_name').value);\n        formData.append('street_address', document.getElementById('street_address').value);\n        formData.append('license_number', document.getElementById('license_number').value);\n        formData.append('tin', document.getElementById('tin').value);\n        formData.append('website_address', document.getElementById('website_address').value);\n        formData.append('agency_country', document.getElementById('agency_country').value);\n        formData.append('google_maps', document.getElementById('google_maps').value);\n        formData.append('company_profile', document.getElementById('company_profile').value);\n        formData.append('hotel_star_rating', document.getElementById('hotel_star_rating').value);\n\n        formData.append('contact_person', document.getElementById('contact_person').value);\n        formData.append('contact_designation', document.getElementById('contact_designation').value);\n        formData.append('telephone_number', document.getElementById('telephone_number').value);\n        formData.append('email', document.getElementById('email').value);\n\n        formData.append('business_address1', document.getElementById('business_address1').value);\n        formData.append('business_address2', document.getElementById('business_address2').value);\n        formData.append('business_city', document.getElementById('business_city').value);\n        formData.append('business_country', document.getElementById('business_country').value);\n\n        formData.append('mobile_phone', document.getElementById('mobile_phone').value);\n        formData.append('username', document.getElementById('username').value);\n        formData.append('password', document.getElementById('password').value);\n\n        \/\/ \u2705 REQUIRED\n        formData.append('action', 'process_business_registration');\n        formData.append('security', document.querySelector('[name=\"business_registration_nonce\"]').value);\n\n        \/\/ \ud83d\udd25 DEBUG\n        console.log('USER TYPE:', document.getElementById('user_type').value);\n\n        ffetch('\/wp-admin\/admin-ajax.php', {\n    method: 'POST',\n    body: formData\n})\n.then(async res => {\n    const text = await res.text();   \/\/ \ud83d\udc48 capture raw response\n    console.log('RAW RESPONSE:', text);\n\n    try {\n        return JSON.parse(text);\n    } catch (e) {\n        throw new Error('Invalid JSON: ' + text);\n    }\n})\n.then(data => {\n            submitBtn.disabled = false;\n            submitBtn.innerText = 'Register';\n\n            if (data.success) {\n                alert('Registration successful!');\n                form.reset();\n            } else {\n                showErrorPopup(data.data.message || 'Error occurred');\n            }\n        })\n        .catch(err => {\n            submitBtn.disabled = false;\n            submitBtn.innerText = 'Register';\n            console.error(err);\n            showErrorPopup('Network error');\n        });\n    });\n    \n\n});\n\n\n<\/script><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-23074","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.tourug.com\/index.php?rest_route=\/wp\/v2\/pages\/23074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tourug.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.tourug.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.tourug.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tourug.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23074"}],"version-history":[{"count":5,"href":"https:\/\/www.tourug.com\/index.php?rest_route=\/wp\/v2\/pages\/23074\/revisions"}],"predecessor-version":[{"id":23896,"href":"https:\/\/www.tourug.com\/index.php?rest_route=\/wp\/v2\/pages\/23074\/revisions\/23896"}],"wp:attachment":[{"href":"https:\/\/www.tourug.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}