{"id":992034,"date":"2025-03-21T11:31:29","date_gmt":"2025-03-21T10:31:29","guid":{"rendered":"https:\/\/vitatrendy.com\/thank-you-for-your-order\/"},"modified":"2025-06-19T09:44:26","modified_gmt":"2025-06-19T07:44:26","slug":"thank-you-for-your-order","status":"publish","type":"page","link":"https:\/\/staging.vitatrendy.com\/en\/thank-you-for-your-order\/","title":{"rendered":"Thank You for your Order"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"992034\" class=\"elementor elementor-992034 elementor-990194\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7fea734 e-con-full e-flex e-con e-child\" data-id=\"7fea734\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t<div data-ha-element-link=\"{&quot;url&quot;:&quot;https:\\\/\\\/staging.vitatrendy.com\\\/reservas\\\/&quot;,&quot;is_external&quot;:&quot;&quot;,&quot;nofollow&quot;:&quot;&quot;}\" style=\"cursor: pointer\" class=\"elementor-element elementor-element-39ee3aa elementor-hidden-mobile elementor-widget elementor-widget-ha-step-flow happy-addon ha-step-flow\" data-id=\"39ee3aa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"ha-step-flow.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t<div class=\"ha-steps-icon\">\n\t\t\t\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 256 256\"><rect width=\"256\" height=\"256\" fill=\"none\"><\/rect><polyline points=\"96 72 136 48 136 208\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"><\/polyline><\/svg>\n\t\t\t\t\t<\/div>\n\n\t\t<p class=\"ha-steps-title\">Select plan<\/p>\n\t\t\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div data-ha-element-link=\"{&quot;url&quot;:&quot;https:\\\/\\\/staging.vitatrendy.com\\\/carrito\\\/&quot;,&quot;is_external&quot;:&quot;&quot;,&quot;nofollow&quot;:&quot;&quot;}\" style=\"cursor: pointer\" class=\"elementor-element elementor-element-acc42fd elementor-hidden-mobile elementor-widget elementor-widget-ha-step-flow happy-addon ha-step-flow\" data-id=\"acc42fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"ha-step-flow.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t<div class=\"ha-steps-icon\">\n\t\t\t\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 256 256\"><rect width=\"256\" height=\"256\" fill=\"none\"><\/rect><path d=\"M91.33,72a40,40,0,1,1,68.61,40.07L88,208h80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"><\/path><\/svg>\n\t\t\t\t\t<\/div>\n\n\t\t<p class=\"ha-steps-title\">Cart &amp; extras<\/p>\n\t\t\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div data-ha-element-link=\"{&quot;url&quot;:&quot;https:\\\/\\\/staging.vitatrendy.com\\\/?page_id=990102&quot;,&quot;is_external&quot;:&quot;&quot;,&quot;nofollow&quot;:&quot;&quot;}\" style=\"cursor: pointer\" class=\"elementor-element elementor-element-dfce389 elementor-hidden-mobile elementor-widget elementor-widget-ha-step-flow happy-addon ha-step-flow\" data-id=\"dfce389\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"ha-step-flow.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t<div class=\"ha-steps-icon\">\n\t\t\t\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 256 256\"><rect width=\"256\" height=\"256\" fill=\"none\"><\/rect><path d=\"M88,48h80l-48,64a48,48,0,1,1-32,83.78\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"><\/path><\/svg>\n\t\t\t\t\t<\/div>\n\n\t\t<p class=\"ha-steps-title\">Checkout<\/p>\n\t\t\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div data-ha-element-link=\"{&quot;url&quot;:&quot;https:\\\/\\\/staging.vitatrendy.com\\\/gracias-por-tu-pedido\\\/&quot;,&quot;is_external&quot;:&quot;&quot;,&quot;nofollow&quot;:&quot;&quot;}\" style=\"cursor: pointer\" class=\"elementor-element elementor-element-e464f72 elementor-widget elementor-widget-ha-step-flow happy-addon ha-step-flow\" data-id=\"e464f72\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"ha-step-flow.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t<div class=\"ha-steps-icon\">\n\t\t\t\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 256 256\"><rect width=\"256\" height=\"256\" fill=\"none\"><\/rect><polyline points=\"184 168 64 168 160 48 160 208\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"><\/polyline><\/svg>\n\t\t\t\t\t<\/div>\n\n\t\t<p class=\"ha-steps-title\">Order completed<\/p>\n\t\t\n\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-0530925 e-con-full e-flex e-con e-parent\" data-id=\"0530925\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t<div class=\"vamtam-has-theme-widget-styles elementor-element elementor-element-64f88d5 animated-slow elementor-invisible elementor-widget elementor-widget-heading\" data-id=\"64f88d5\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInUp&quot;,&quot;_animation_delay&quot;:0.1}\" 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\">Reservations<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"vamtam-has-theme-widget-styles elementor-element elementor-element-bff44bb elementor-widget elementor-widget-heading\" data-id=\"bff44bb\" 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\">Thank you. Your order has been received <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e3d6808 elementor-widget elementor-widget-html\" data-id=\"e3d6808\" 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<script>jQuery(document).ready(function ($) {\r\n  $('.woocommerce-table__product-name').each(function () {\r\n    const $td = $(this);\r\n    let html = $td.html();\r\n\r\n    if (html.includes(\"Informaci\u00f3n de la cita\") && html.includes(\"Servicio reservado:\")) {\r\n\r\n      \/\/ Envolver el bloque con div\r\n      html = html.replace(\r\n        \/(Informaci\u00f3n de la cita)([\\s\\S]*?)(Servicio reservado:[^<]*<\\\/strong>[^<]*)\/i,\r\n        \"<div class='info-cita-box'>$1$2$3<\/div>\"\r\n      );\r\n\r\n      $td.html(html);\r\n\r\n      const $citaBox = $td.find('.info-cita-box');\r\n      let citaHtml = $citaBox.html();\r\n\r\n      \/\/ Eliminar cualquier <hr> duplicado\r\n      citaHtml = citaHtml.replace(\/<hr[^>]*>\/gi, '');\r\n\r\n      \/\/ A\u00f1adir <hr> limpio despu\u00e9s de Informaci\u00f3n de la cita con estilo al texto\r\n      citaHtml = citaHtml.replace(\r\n        \/(Informaci\u00f3n de la cita)(<br\\s*\\\/?\/>)*\/i,\r\n        \"<span style='color: #99795F; font-weight: 500; font-size: 16px; text-transform:uppercase;'>Informaci\u00f3n de la cita<\/span><br\/><hr style=\\\"margin-top: 10px; margin-bottom: 10px; border: none; background: none\\\">\"\r\n      );\r\n\r\n      \/\/ Insertar <br\/><br\/> despu\u00e9s de Hora Local\r\n      citaHtml = citaHtml.replace(\r\n        \/(<strong>Hora Local:[^<]*<\\\/strong>[^<]*)\/i,\r\n        \"$1<br\/><br\/>\"\r\n      );\r\n\r\n      \/\/ A\u00f1adir <br\/> al final si no hay\r\n      if (!citaHtml.trim().endsWith(\"<br\/><br\/>\")) {\r\n        citaHtml += \"<br\/>\";\r\n      }\r\n\r\n      $citaBox.html(citaHtml);\r\n    }\r\n  });\r\n});\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-199dee8 elementor-widget elementor-widget-html\" data-id=\"199dee8\" 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<script>jQuery(document).ready(function ($) {\r\n  $('.woocommerce-table__product-name').each(function () {\r\n    const $td = $(this);\r\n\r\n    \/\/ Buscar el strong que contiene \"Ubicaci\u00f3n:\"\r\n    const $ubicacionStrong = $td.find('strong').filter(function () {\r\n      return $(this).text().trim().startsWith(\"Ubicaci\u00f3n:\");\r\n    });\r\n\r\n    \/\/ Si se encuentra, eliminar todo desde ah\u00ed hasta el final del td\r\n    if ($ubicacionStrong.length) {\r\n      let node = $ubicacionStrong[0];\r\n      while (node) {\r\n        let next = node.nextSibling;\r\n        node.parentNode.removeChild(node);\r\n        node = next;\r\n      }\r\n    }\r\n  });\r\n});\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-457471f elementor-widget elementor-widget-html\" data-id=\"457471f\" 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<script>jQuery(document).ready(function($) {\r\n    \/\/ Seleccionamos la celda que contiene todo\r\n    var $productCell = $('.woocommerce-table__product-name');\r\n\r\n    if ($productCell.length) {\r\n        \/\/ Usamos .contents() que es un m\u00e9todo especial de jQuery\r\n        \/\/ para obtener TODOS los hijos, incluyendo los nodos de texto (#text)\r\n        var $cellContents = $productCell.contents();\r\n\r\n        \/\/ Buscamos la posici\u00f3n (el \u00edndice) de nuestra caja de informaci\u00f3n\r\n        var infoBoxIndex = $cellContents.index($productCell.find('.AmeliaInfo-cita-box'));\r\n\r\n        \/\/ Si encontramos la caja...\r\n        if (infoBoxIndex > -1) {\r\n            \/\/ Seleccionamos TODOS los nodos que vienen DESPU\u00c9S de esa posici\u00f3n\r\n            var $nodesToRemove = $cellContents.slice(infoBoxIndex + 1);\r\n            \r\n            \/\/ Y los eliminamos\r\n            $nodesToRemove.remove();\r\n        }\r\n    }\r\n});\r\n<\/script>\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","protected":false},"excerpt":{"rendered":"<p>Select plan Cart &amp; extras Checkout Order completed Reservations Thank you. Your order has been received<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_joinchat":[],"footnotes":""},"class_list":["post-992034","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/staging.vitatrendy.com\/en\/wp-json\/wp\/v2\/pages\/992034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.vitatrendy.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging.vitatrendy.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging.vitatrendy.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.vitatrendy.com\/en\/wp-json\/wp\/v2\/comments?post=992034"}],"version-history":[{"count":0,"href":"https:\/\/staging.vitatrendy.com\/en\/wp-json\/wp\/v2\/pages\/992034\/revisions"}],"wp:attachment":[{"href":"https:\/\/staging.vitatrendy.com\/en\/wp-json\/wp\/v2\/media?parent=992034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}