 
 
 
 








 <div class="custom-maint-container woocommerce-info" style="border-top-color: #d63638; padding: 30px 20px; text-align: center; display: block !important;">   
        <div style="margin-bottom: 20px; font-size: 18px; font-weight: 500;">
            진행을 위해 IBO 번호를 입력해 주세요.
        </div>
          
        <div id="ibo_error_msg" style="color: #d63638; font-size: 14px; margin-bottom: 10px; display: none; font-family: serif !important;">
            진행을 위해 IBO 번호를 입력해 주세요.
        </div>

        <div style="display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;">
            <input type="text" id="custom_ibo_number" placeholder="IBO 번호를 입력하세요" 
                style="padding: 10px; border: 1px solid #ccc; border-radius: 4px; width: 220px; margin: 0;">
            
            <button type="button" onclick="redirectToIBO()" class="button" 
                style="background-color: #d63638; color: white; border: none; padding: 11px 25px; cursor: pointer; border-radius: 4px; line-height: 1; height: auto;">
                Go
            </button>
        </div>

      </div>        <script type="text/javascript">
           function redirectToIBO() {
            
                var iboInput = document.getElementById('custom_ibo_number');
                var iboValue = iboInput.value.trim();
                var errorSpan = document.getElementById('ibo_error_msg');

                if (iboValue) {
                    errorSpan.style.display = 'none';
                    iboInput.style.borderColor = '#ccc';
                    
                    var urlParams = new URLSearchParams(window.location.search);
                    var fullHost = window.location.hostname;
                    var protocol = window.location.protocol;

                    // --- WordPress Dynamic Slug Logic ---
                    // We use PHP to get the current slug (e.g., 'my-account', 'join-now')
                    var currentSlug = "join-now";
                    
                    // Define your subsite path
                    var subSitePath = "";
                    
                    // Start with the locale base
                    var pathAndQuery = subSitePath + "/kr";

                    // If we are on one of your target pages, append the slug
                    var targetPages = ['my-account', 'my-account-4', 'join-now'];
                    if (targetPages.includes(currentSlug)) {
                        pathAndQuery += "/" + currentSlug;
                    }

                    // Handle Language Params
                    if (urlParams.has('lang')) {
                        pathAndQuery += "?lang=" + urlParams.get('lang');
                    }

                    var rootDomain = fullHost.replace('wwwkr.', '');
                    var newUrl = protocol + "//" + iboValue + "." + rootDomain + pathAndQuery;
                    
                    window.location.href = newUrl;
                } else {
                    errorSpan.style.display = 'block';
                    iboInput.style.borderColor = '#d63638'; 
                }
            }
        </script>
        <div class="custom-maint-container woocommerce-info" style="border-top-color: #d63638; padding: 30px 20px; text-align: center; display: block !important;">   
        <div style="margin-bottom: 20px; font-size: 18px; font-weight: 500;">
            진행을 위해 IBO 번호를 입력해 주세요.
        </div>
          
        <div id="ibo_error_msg" style="color: #d63638; font-size: 14px; margin-bottom: 10px; display: none; font-family: serif !important;">
            진행을 위해 IBO 번호를 입력해 주세요.
        </div>

        <div style="display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;">
            <input type="text" id="custom_ibo_number" placeholder="IBO 번호를 입력하세요" 
                style="padding: 10px; border: 1px solid #ccc; border-radius: 4px; width: 220px; margin: 0;">
            
            <button type="button" onclick="redirectToIBO()" class="button" 
                style="background-color: #d63638; color: white; border: none; padding: 11px 25px; cursor: pointer; border-radius: 4px; line-height: 1; height: auto;">
                Go
            </button>
        </div>

      </div>        <script type="text/javascript">
           function redirectToIBO() {
            
                var iboInput = document.getElementById('custom_ibo_number');
                var iboValue = iboInput.value.trim();
                var errorSpan = document.getElementById('ibo_error_msg');

                if (iboValue) {
                    errorSpan.style.display = 'none';
                    iboInput.style.borderColor = '#ccc';
                    
                    var urlParams = new URLSearchParams(window.location.search);
                    var fullHost = window.location.hostname;
                    var protocol = window.location.protocol;

                    // --- WordPress Dynamic Slug Logic ---
                    // We use PHP to get the current slug (e.g., 'my-account', 'join-now')
                    var currentSlug = "join-now";
                    
                    // Define your subsite path
                    var subSitePath = "";
                    
                    // Start with the locale base
                    var pathAndQuery = subSitePath + "/kr";

                    // If we are on one of your target pages, append the slug
                    var targetPages = ['my-account', 'my-account-4', 'join-now'];
                    if (targetPages.includes(currentSlug)) {
                        pathAndQuery += "/" + currentSlug;
                    }

                    // Handle Language Params
                    if (urlParams.has('lang')) {
                        pathAndQuery += "?lang=" + urlParams.get('lang');
                    }

                    var rootDomain = fullHost.replace('wwwkr.', '');
                    var newUrl = protocol + "//" + iboValue + "." + rootDomain + pathAndQuery;
                    
                    window.location.href = newUrl;
                } else {
                    errorSpan.style.display = 'block';
                    iboInput.style.borderColor = '#d63638'; 
                }
            }
        </script>
        {"id":17270,"date":"2021-08-06T08:42:17","date_gmt":"2021-08-06T08:42:17","guid":{"rendered":"http:\/\/www.enzacta.com\/kr\/join-now\/"},"modified":"2021-08-06T08:42:17","modified_gmt":"2021-08-06T08:42:17","slug":"join-now","status":"publish","type":"page","link":"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en","title":{"rendered":"Join Now"},"content":{"rendered":"\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":{"_acf_changed":false,"footnotes":""},"class_list":["post-17270","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Join Now - ENZACTA KR<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/\" \/>\r\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Join Now - ENZACTA KR\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en\" \/>\r\n<meta property=\"og:site_name\" content=\"ENZACTA KR\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en\",\"url\":\"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en\",\"name\":\"Join Now - ENZACTA KR\",\"isPartOf\":{\"@id\":\"https:\/\/7965749.enzacta.com\/kr\/#website\"},\"datePublished\":\"2021-08-06T08:42:17+00:00\",\"dateModified\":\"2021-08-06T08:42:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/7965749.enzacta.com\/kr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Join Now\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/7965749.enzacta.com\/kr\/#website\",\"url\":\"https:\/\/7965749.enzacta.com\/kr\/\",\"name\":\"ENZACTA KR\",\"description\":\"ENZACTA - life. rebuilt.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/7965749.enzacta.com\/kr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Join Now - ENZACTA KR","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/","og_locale":"ko_KR","og_type":"article","og_title":"Join Now - ENZACTA KR","og_url":"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en","og_site_name":"ENZACTA KR","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en","url":"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en","name":"Join Now - ENZACTA KR","isPartOf":{"@id":"https:\/\/7965749.enzacta.com\/kr\/#website"},"datePublished":"2021-08-06T08:42:17+00:00","dateModified":"2021-08-06T08:42:17+00:00","breadcrumb":{"@id":"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wwwkr.enzacta.com\/kr\/join-now\/?lang=en#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/7965749.enzacta.com\/kr\/"},{"@type":"ListItem","position":2,"name":"Join Now"}]},{"@type":"WebSite","@id":"https:\/\/7965749.enzacta.com\/kr\/#website","url":"https:\/\/7965749.enzacta.com\/kr\/","name":"ENZACTA KR","description":"ENZACTA - life. rebuilt.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/7965749.enzacta.com\/kr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"}]}},"_links":{"self":[{"href":"https:\/\/wwwkr.enzacta.com\/kr\/wp-json\/wp\/v2\/pages\/17270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wwwkr.enzacta.com\/kr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wwwkr.enzacta.com\/kr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wwwkr.enzacta.com\/kr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wwwkr.enzacta.com\/kr\/wp-json\/wp\/v2\/comments?post=17270"}],"version-history":[{"count":0,"href":"https:\/\/wwwkr.enzacta.com\/kr\/wp-json\/wp\/v2\/pages\/17270\/revisions"}],"wp:attachment":[{"href":"https:\/\/wwwkr.enzacta.com\/kr\/wp-json\/wp\/v2\/media?parent=17270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}