 {"id":4854,"date":"2019-03-22T19:09:35","date_gmt":"2019-03-22T18:09:35","guid":{"rendered":"https:\/\/servitotal.com\/costarica\/?page_id=4854"},"modified":"2025-11-26T05:21:16","modified_gmt":"2025-11-26T04:21:16","slug":"consulta-tu-orden","status":"publish","type":"page","link":"https:\/\/servitotal.com\/costarica\/consulta-tu-orden\/","title":{"rendered":"CONSULTA TU ORDEN"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4854\" class=\"elementor elementor-4854\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-705fcf2 e-flex e-con-boxed e-con e-parent\" data-id=\"705fcf2\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-6cc7f21 e-con-full e-flex e-con e-child\" data-id=\"6cc7f21\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-35b15e5 elementor-widget elementor-widget-heading\" data-id=\"35b15e5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">CONSULTA EL ESTADO DE TUS SERVICIOS<\/h2>\t\t\t\t<\/div>\n\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<div class=\"elementor-element elementor-element-2c1face e-con-full e-flex e-con e-parent\" data-id=\"2c1face\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-ef9b93e elementor-hidden-desktop elementor-hidden-tablet elementor-hidden-mobile e-con-full e-flex e-con e-child\" data-id=\"ef9b93e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-a43a52c e-con-full e-flex e-con e-child\" data-id=\"a43a52c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-8b2bb98 e-con-full e-flex e-con e-child\" data-id=\"8b2bb98\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fb50a3a elementor-widget elementor-widget-html\" data-id=\"fb50a3a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<form method=\"post\" id=\"review-order\" name=\"review-order\">\n    <h2>Consulta tu orden<\/h2>\n    <div>\n    <select name=\"type\" id=\"type\" required=\"required\">\n        <option value=\"\">Buscar por<\/option>\n        <option value=\"1\">Documento Personal<\/option>\n        <option value=\"2\"># de boleta<\/option>\n    <\/select><\/div>\n    <div>\n    <input name=\"country\" type=\"hidden\" value=\"\"\/>\n    <input placeholder=\"Digite el n\u00famero\" type=\"text\" id=\"number\" name=\"number\" required=\"required\"\/>\n    <\/div>\n    \n    <div>\n        <button class=\"button-st\" type=\"button\">CONSULTAR<\/button>\n    <\/div>\n<\/form>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0e6dbef area-result e-con-full e-flex e-con e-child\" data-id=\"0e6dbef\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-03cde1e elementor-widget elementor-widget-html\" data-id=\"03cde1e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<table id=\"results\">\n    <thead>\n        <tr>\n            <td>#Boleta<\/td>\n            <td>Descripci\u00f3n<\/td>\n            <td>Fallas<\/td>\n            <td>Estado actual<\/td>\n        <\/tr>\n        <\/thead>\n        <tbody class=\"data\">\n        <tr>\n            <td><\/td>\n            <td><\/td>\n            <td><\/td>\n            <td><\/td>\n        <\/tr>\n        <\/tbody>\n    \n<\/table>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-a8ce0f4 e-con-full e-flex e-con e-child\" data-id=\"a8ce0f4\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1467a97 elementor-widget elementor-widget-shortcode\" data-id=\"1467a97\" data-element_type=\"widget\" data-e-type=\"widget\" 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\">\n    <div class=\"row\">\n        <div class=\"col-md-3 mb-3\">\n            <div class=\"card\">\n                <div class=\"card-body\">\n                    <form id=\"consulta_tu_order\" action=\"https:\/\/servitotal.com\/costarica\/wp-admin\/admin-ajax.php\" method=\"POST\">\n                        <input type=\"hidden\" name=\"action\" value=\"handle_apigee_form_user_order_submission\">\n                        <input type=\"hidden\" name=\"countryID\" id=\"countryID\" value=\"CR\">\n\n                        <h2 class=\"text-center\">Consulta tu orden<\/h2>\n\n                        <div class=\"mb-3 form-group\">\n                            <label for=\"idType\">Tipo de Documento:<\/label>\n                            <select class=\"form-control\" name=\"idType\" id=\"idType\" required=\"required\">\n                                <option value=\"\">Buscar por<\/option>\n                                <option value=\"1\">Documento personal<\/option>\n                                <option value=\"2\">N\u00famero de orden<\/option>\n                            <\/select>\n                        <\/div>\n\n                        <div class=\"mb-3 form-group\">\n                            <label for=\"idNumber\">N\u00famero de Documento:<\/label>\n                            <input class=\"form-control\" placeholder=\"Digite el n\u00famero\" type=\"text\" id=\"idNumber\" name=\"idNumber\" required=\"required\" oninput=\"this.value = this.value.replace(\/[^0-9.\\-]\/g, '').replace(\/(\\..*)\\.\/g, '$1');\"\/>\n                        <\/div>\n\n                        <input type=\"submit\" id=\"sendRequestForm\" class=\"btn btn-primary rounded\" value=\"Consultar\">\n                    <\/form>\n                <\/div>\n            <\/div>\n        <\/div>\n        <div class=\"apigee_table_user_order_request col-md-9 mb-3\">\n            <div class=\"card\">\n                <div class=\"card-body\">\n                    <div id=\"responseTable\" class=\"table-responsive\">\n                        <table class=\"table\">\n                            <thead class=\"bg-warning text-white\">\n                            <tr>\n                                <th>Orden<\/th>\n                                <th>Art\u00edculo<\/th>\n                                <th>Marca<\/th>\n                                <th>Modelo<\/th>\n                                <th>Fallas reportadas<\/th>\n                                <th>Observaciones<\/th>\n                                <th>Estado actual<\/th>\n                            <\/tr>\n                            <\/thead>\n                            <tbody id=\"responseBody\" class=\"\">\n                            <\/tbody>\n                        <\/table>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    <script>\n        jQuery(document).ready(function($) {\n\n            const formRequest = $('#consulta_tu_order');\n            const buttonRequest = $('#sendRequestForm');\n\n            \/\/ Function to get URL parameters\n            function getUrlParameter(name) {\n                name = name.replace(\/[\\[]\/, '\\\\[').replace(\/[\\]]\/, '\\\\]');\n                const regex = new RegExp('[\\\\?&]' + name + '=([^&#]*)');\n                const results = regex.exec(location.search);\n                return results === null ? '' : decodeURIComponent(results[1].replace(\/\\+\/g, ' '));\n            }\n\n            function sendAjaxFormRequest(event) {\n                event.preventDefault();\n\n                const formData = {\n                    action: 'handle_apigee_form_user_order_submission',\n                    idType: $('#idType').val(),\n                    idNumber: $('#idNumber').val(),\n                    countryID: $('#countryID').val()\n                };\n\n                $.ajax({\n                    type: 'POST',\n                    url: 'https:\/\/servitotal.com\/costarica\/wp-admin\/admin-ajax.php',\n                    data: formData,\n                    success: function(response) {\n                        const tableBody = $('#responseBody');\n                        const tableHead = $('#responseTable thead tr');\n                        const countryID = $('#countryID').val();\n                        tableBody.empty();\n\n                        if (response.success && response.data.order) {\n                            const orders = response.data.order;\n\n                            \/\/ Construir filas con formato unificado para todos los pa\u00edses\n                            orders.forEach(order => {\n                                const row = '<tr>' +\n                                    '<td>' + order.id + '<\/td>' +\n                                    '<td>' + order.description + '<\/td>' +\n                                    '<td>' + order.brand + '<\/td>' +\n                                    '<td>' + order.model + '<\/td>' +\n                                    '<td>' + order.reportedDamage + '<\/td>' +\n                                    '<td>' + order.damage + '<\/td>' +\n                                    '<td>' + order.status + '<\/td>' +\n                                    '<\/tr>';\n\n                                tableBody.append(row);\n                            });\n\n                            $('#responseTable').show();\n                        } else if (response.data.error) {\n                            tableBody.append(`<tr><td colspan=\"7\">${response.data.error}<\/td><\/tr>`);\n                        } else {\n                            tableBody.append(`<tr><td colspan=\"7\">No se encontraron resultados.<\/td><\/tr>`);\n                        }\n                    },\n                    error: function(xhr, status, error) {\n                        console.log(xhr, status, error);\n                        console.log('Hubo un error al enviar el formulario.');\n                    }\n                });\n            }\n\n            \/\/ Get URL parameter\n            const orderId = getUrlParameter('order_id');\n\n            if(orderId) {\n                $('#idNumber').val(orderId);\n                $('#idType').val('2');\n\n                sendAjaxFormRequest(new Event('submit'));\n            }\n\n            formRequest.on('submit', function(event) {\n                sendAjaxFormRequest(event);\n            });\n        });\n    <\/script>\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-db7d90c e-flex e-con-boxed e-con e-parent\" data-id=\"db7d90c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-f89b146 e-con-full e-flex e-con e-child\" data-id=\"f89b146\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-0cd68e5 e-con-full e-flex e-con e-child\" data-id=\"0cd68e5\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-240325a e-con-full e-flex e-con e-child\" data-id=\"240325a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5bd422e elementor-widget elementor-widget-image\" data-id=\"5bd422e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/servitotal.com\/costarica\/contrado-de-servicio\/\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"379\" height=\"234\" src=\"https:\/\/servitotal.com\/costarica\/wp-content\/uploads\/sites\/14\/2019\/03\/ca1-contrata.jpg\" class=\"attachment-large size-large wp-image-4525\" alt=\"\" srcset=\"https:\/\/servitotal.com\/costarica\/wp-content\/uploads\/sites\/14\/2019\/03\/ca1-contrata.jpg 379w, https:\/\/servitotal.com\/costarica\/wp-content\/uploads\/sites\/14\/2019\/03\/ca1-contrata-300x185.jpg 300w\" sizes=\"(max-width: 379px) 100vw, 379px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-153dcad e-con-full e-flex e-con e-child\" data-id=\"153dcad\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-87cbc99 elementor-widget elementor-widget-image\" data-id=\"87cbc99\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"379\" height=\"234\" src=\"https:\/\/servitotal.com\/costarica\/wp-content\/uploads\/sites\/14\/2019\/03\/ca2-consulta.jpg\" class=\"attachment-large size-large wp-image-4526\" alt=\"\" srcset=\"https:\/\/servitotal.com\/costarica\/wp-content\/uploads\/sites\/14\/2019\/03\/ca2-consulta.jpg 379w, https:\/\/servitotal.com\/costarica\/wp-content\/uploads\/sites\/14\/2019\/03\/ca2-consulta-300x185.jpg 300w\" sizes=\"(max-width: 379px) 100vw, 379px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f2bf80c e-con-full e-flex e-con e-child\" data-id=\"f2bf80c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1d983ad elementor-widget elementor-widget-image\" data-id=\"1d983ad\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/servitotal.com\/repuestos\/\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"379\" height=\"234\" src=\"https:\/\/servitotal.com\/costarica\/wp-content\/uploads\/sites\/14\/2019\/03\/ca3-repuestos.jpg\" class=\"attachment-large size-large wp-image-4527\" alt=\"\" srcset=\"https:\/\/servitotal.com\/costarica\/wp-content\/uploads\/sites\/14\/2019\/03\/ca3-repuestos.jpg 379w, https:\/\/servitotal.com\/costarica\/wp-content\/uploads\/sites\/14\/2019\/03\/ca3-repuestos-300x185.jpg 300w\" sizes=\"(max-width: 379px) 100vw, 379px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\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":"<p>CONSULTA EL ESTADO DE TUS SERVICIOS Consulta tu orden Buscar porDocumento Personal# de boleta CONSULTAR #Boleta Descripci\u00f3n Fallas Estado actual<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template\/template-full-width.php","meta":{"footnotes":""},"class_list":["post-4854","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/servitotal.com\/costarica\/wp-json\/wp\/v2\/pages\/4854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/servitotal.com\/costarica\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/servitotal.com\/costarica\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/servitotal.com\/costarica\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/servitotal.com\/costarica\/wp-json\/wp\/v2\/comments?post=4854"}],"version-history":[{"count":42,"href":"https:\/\/servitotal.com\/costarica\/wp-json\/wp\/v2\/pages\/4854\/revisions"}],"predecessor-version":[{"id":8248,"href":"https:\/\/servitotal.com\/costarica\/wp-json\/wp\/v2\/pages\/4854\/revisions\/8248"}],"wp:attachment":[{"href":"https:\/\/servitotal.com\/costarica\/wp-json\/wp\/v2\/media?parent=4854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}