{"id":18581,"date":"2025-12-23T15:57:28","date_gmt":"2025-12-23T18:57:28","guid":{"rendered":"https:\/\/antiquewhite-capybara-122719.hostingersite.com\/?page_id=18581"},"modified":"2026-07-08T10:56:44","modified_gmt":"2026-07-08T15:56:44","slug":"checkout","status":"publish","type":"page","link":"https:\/\/oasishostelpuertoviejo.com\/en\/checkout\/","title":{"rendered":"Checkout"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"18581\" class=\"elementor elementor-18581\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4cc3ffc e-con-full e-flex e-con e-parent\" data-id=\"4cc3ffc\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-96d635f elementor-widget__width-inherit elementor-widget elementor-widget-html\" data-id=\"96d635f\" 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>\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n  document.querySelectorAll('.mphb_sc_checkout-services-list label').forEach(label => {\n\n    \/\/ s\u00f3 pega labels que t\u00eam select (ou seja, os de servi\u00e7os pagos)\n    if (label.querySelector('select')) {\n\n      label.childNodes.forEach(node => {\n        if (node.nodeType === 3) { \/\/ #text\n          node.textContent = node.textContent.replace('para', '');\n        }\n      });\n\n    }\n\n  });\n});\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4931019 elementor-widget elementor-widget-html\" data-id=\"4931019\" 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>\ndocument.addEventListener('DOMContentLoaded', function() {\n  document.querySelectorAll('.mphb_sc_checkout-guests-chooser').forEach(function(select) {\n    if (select.value === '') {\n      select.value = '1';\n    }\n  });\n});\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f72e66b elementor-widget elementor-widget-html\" data-id=\"f72e66b\" 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>\r\ndocument.addEventListener('DOMContentLoaded', function() {\r\n\r\n  function getCurrentLang() {\r\n    var lang = document.documentElement.lang || 'es';\r\n    return lang.split('-')[0];\r\n  }\r\n  var lang = getCurrentLang();\r\n\r\n  var TEXTOS = {\r\n    es: {\r\n      cama: 'cama', camas: 'camas', en: 'en',\r\n      tituloCamas: 'Camas', tituloNoches: 'Noches', tituloTotal: 'Total'\r\n    },\r\n    pt: {\r\n      cama: 'cama', camas: 'camas', en: 'em',\r\n      tituloCamas: 'Camas', tituloNoches: 'Noites', tituloTotal: 'Total'\r\n    },\r\n    en: {\r\n      cama: 'bed', camas: 'beds', en: 'in',\r\n      tituloCamas: 'Beds', tituloNoches: 'Nights', tituloTotal: 'Total'\r\n    }\r\n  };\r\n  var t = TEXTOS[lang] || TEXTOS['es'];\r\n\r\n  \/\/ ===== Dicion\u00e1rio de termos descritivos do nome do quarto =====\r\n  var TERMOS_QUARTO = {\r\n    pt: [\r\n      [\/Habitaci[o\u00f3]n Compartida Femenina\/gi, 'Quarto Compartilhado Feminino'],\r\n      [\/Habitaci[o\u00f3]n Compartida Masculina\/gi, 'Quarto Compartilhado Masculino'],\r\n      [\/Habitaci[o\u00f3]n Compartida\/gi, 'Quarto Compartilhado'],\r\n      [\/Habitaci[o\u00f3]n Doble\/gi, 'Quarto Duplo'],\r\n      [\/Habitaci[o\u00f3]n Privada\/gi, 'Quarto Privado']\r\n    ],\r\n    en: [\r\n      [\/Habitaci[o\u00f3]n Compartida Femenina\/gi, 'Female Shared Room'],\r\n      [\/Habitaci[o\u00f3]n Compartida Masculina\/gi, 'Male Shared Room'],\r\n      [\/Habitaci[o\u00f3]n Compartida\/gi, 'Shared Room'],\r\n      [\/Habitaci[o\u00f3]n Doble\/gi, 'Double Room'],\r\n      [\/Habitaci[o\u00f3]n Privada\/gi, 'Private Room']\r\n    ]\r\n  };\r\n\r\n  function traduzirNomeQuarto(nome) {\r\n    if (lang === 'es') return nome; \/\/ espanhol \u00e9 o original, n\u00e3o mexe\r\n    var termos = TERMOS_QUARTO[lang];\r\n    if (!termos) return nome;\r\n    var resultado = nome;\r\n    termos.forEach(function(par) {\r\n      resultado = resultado.replace(par[0], par[1]);\r\n    });\r\n    return resultado;\r\n  }\r\n\r\n  \/\/ Seleciona automaticamente 1 em todos os seletores\r\n  document.querySelectorAll('.mphb_sc_checkout-guests-chooser').forEach(function(select) {\r\n    if (select.value === '') select.value = '1';\r\n  });\r\n\r\n  \/\/ Conta camas\r\n  var totalCamas = document.querySelectorAll('.mphb-room-details').length;\r\n\r\n  \/\/ Texto camas reservadas\r\n  var info = document.createElement('p');\r\n  info.style.cssText = 'font-size: 15px; font-weight: 600; color: #232C36; margin-top: 8px; margin-bottom: 0;';\r\n\r\n  var nomeHabitacao = '';\r\n  var primeiroTitulo = document.querySelector('.mphb-price-breakdown-booking a');\r\n  if (primeiroTitulo) {\r\n      nomeHabitacao = primeiroTitulo.textContent\r\n          .replace(\/^[^A-Za-z\u00c0-\u00ff]+\/, '')\r\n          .replace(\/\\s*-\\s*\/g, ' ')\r\n          .trim();\r\n      nomeHabitacao = traduzirNomeQuarto(nomeHabitacao);\r\n  }\r\n\r\n  var palavraCama = totalCamas === 1 ? t.cama : t.camas;\r\n\r\n  if (lang === 'en') {\r\n    info.innerHTML = 'You are booking ' + totalCamas + ' ' + palavraCama + (nomeHabitacao ? ' ' + t.en + ' ' + nomeHabitacao : '');\r\n  } else if (lang === 'pt') {\r\n    info.innerHTML = 'Voc\u00ea est\u00e1 reservando ' + totalCamas + ' ' + palavraCama + (nomeHabitacao ? ' ' + t.en + ' ' + nomeHabitacao : '');\r\n  } else {\r\n    info.innerHTML = 'Est\u00e1s reservando ' + totalCamas + ' ' + palavraCama + (nomeHabitacao ? ' ' + t.en + ' ' + nomeHabitacao : '');\r\n  }\r\n\r\n  var checkOut = document.querySelector('.mphb-check-out-date');\r\n  if (checkOut) checkOut.parentNode.insertBefore(info, checkOut.nextSibling);\r\n\r\n  \/\/ Simplifica tabela de pre\u00e7os\r\n  var tabela = document.querySelector('#mphb-price-details table');\r\n  if (!tabela) return;\r\n\r\n  var noches = 1;\r\n  var primeiroNoche = tabela.querySelector('.mphb-price-breakdown-nights td:last-child');\r\n  if (primeiroNoche) noches = primeiroNoche.textContent.trim();\r\n\r\n  var totalEl = tabela.querySelector('.mphb-price-breakdown-total .mphb-table-price-column');\r\n  var total = totalEl ? totalEl.innerHTML : '';\r\n\r\n  tabela.style.display = 'none';\r\n\r\n  var novaTabela = document.createElement('table');\r\n  novaTabela.style.cssText = 'width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #ddd; border-radius: 12px; overflow: hidden;';\r\n  novaTabela.innerHTML = `\r\n    <tbody>\r\n      <tr>\r\n        <td style=\"padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 14px; color: #555;\">${t.tituloCamas}<\/td>\r\n        <td style=\"padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 14px; color: #232C36; font-weight: 600; text-align: right;\">${totalCamas}<\/td>\r\n      <\/tr>\r\n      <tr>\r\n        <td style=\"padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 14px; color: #555;\">${t.tituloNoches}<\/td>\r\n        <td style=\"padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 14px; color: #232C36; font-weight: 600; text-align: right;\">${noches}<\/td>\r\n      <\/tr>\r\n      <tr>\r\n        <th style=\"padding: 12px 16px; font-size: 15px; color: #232C36; text-align: left;\">${t.tituloTotal}<\/th>\r\n        <th style=\"padding: 12px 16px; font-size: 15px; text-align: right;\">${total}<\/th>\r\n      <\/tr>\r\n    <\/tbody>\r\n  `;\r\n  tabela.parentNode.insertBefore(novaTabela, tabela);\r\n});\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2336620 e-con-full e-flex e-con e-child\" data-id=\"2336620\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-be13b78 elementor-widget-mobile__width-inherit elementor-widget elementor-widget-shortcode\" data-id=\"be13b78\" 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\"><div class=\"mphb_sc_checkout-wrapper \"><\/div><\/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\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":"","meta":{"footnotes":""},"class_list":["post-18581","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Checkout | Oasis Beachfront Hostel - Puerto Viejo<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/oasishostelpuertoviejo.com\/en\/checkout\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Checkout | Oasis Beachfront Hostel - Puerto Viejo\" \/>\n<meta property=\"og:url\" content=\"https:\/\/oasishostelpuertoviejo.com\/en\/checkout\/\" \/>\n<meta property=\"og:site_name\" content=\"Oasis Beachfront Hostel - Puerto Viejo\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-08T15:56:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/oasishostelpuertoviejo.com\/wp-content\/uploads\/2026\/06\/25_4_11zon.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/checkout\\\/\",\"url\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/checkout\\\/\",\"name\":\"Checkout | Oasis Beachfront Hostel - Puerto Viejo\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/#website\"},\"datePublished\":\"2025-12-23T18:57:28+00:00\",\"dateModified\":\"2026-07-08T15:56:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/checkout\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/checkout\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/checkout\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Checkout\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/#website\",\"url\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/\",\"name\":\"Oasis Beachfront Hostel\",\"description\":\"Hostel en Puerto Viejo dise\u00f1ado para viajeros que buscan comodidad, aventura y nuevas experiencias al mejor precio.\",\"publisher\":{\"@id\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/#organization\",\"name\":\"Oasis Beachfront Hostel\",\"url\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/cropped-oasis-beachfront-logo-e1784920902596.jpeg\",\"contentUrl\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/cropped-oasis-beachfront-logo-e1784920902596.jpeg\",\"width\":512,\"height\":490,\"caption\":\"Oasis Beachfront Hostel\"},\"image\":{\"@id\":\"https:\\\/\\\/oasishostelpuertoviejo.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/oasis.hostel.pv\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Checkout | Oasis Beachfront Hostel - Puerto Viejo","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:\/\/oasishostelpuertoviejo.com\/en\/checkout\/","og_locale":"en_US","og_type":"article","og_title":"Checkout | Oasis Beachfront Hostel - Puerto Viejo","og_url":"https:\/\/oasishostelpuertoviejo.com\/en\/checkout\/","og_site_name":"Oasis Beachfront Hostel - Puerto Viejo","article_modified_time":"2026-07-08T15:56:44+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/oasishostelpuertoviejo.com\/wp-content\/uploads\/2026\/06\/25_4_11zon.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/oasishostelpuertoviejo.com\/checkout\/","url":"https:\/\/oasishostelpuertoviejo.com\/checkout\/","name":"Checkout | Oasis Beachfront Hostel - Puerto Viejo","isPartOf":{"@id":"https:\/\/oasishostelpuertoviejo.com\/#website"},"datePublished":"2025-12-23T18:57:28+00:00","dateModified":"2026-07-08T15:56:44+00:00","breadcrumb":{"@id":"https:\/\/oasishostelpuertoviejo.com\/checkout\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/oasishostelpuertoviejo.com\/checkout\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/oasishostelpuertoviejo.com\/checkout\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/oasishostelpuertoviejo.com\/"},{"@type":"ListItem","position":2,"name":"Checkout"}]},{"@type":"WebSite","@id":"https:\/\/oasishostelpuertoviejo.com\/#website","url":"https:\/\/oasishostelpuertoviejo.com\/","name":"Oasis Beachfront Hostel","description":"Hostel en Puerto Viejo dise\u00f1ado para viajeros que buscan comodidad, aventura y nuevas experiencias al mejor precio.","publisher":{"@id":"https:\/\/oasishostelpuertoviejo.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/oasishostelpuertoviejo.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/oasishostelpuertoviejo.com\/#organization","name":"Oasis Beachfront Hostel","url":"https:\/\/oasishostelpuertoviejo.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/oasishostelpuertoviejo.com\/#\/schema\/logo\/image\/","url":"https:\/\/oasishostelpuertoviejo.com\/wp-content\/uploads\/2026\/07\/cropped-oasis-beachfront-logo-e1784920902596.jpeg","contentUrl":"https:\/\/oasishostelpuertoviejo.com\/wp-content\/uploads\/2026\/07\/cropped-oasis-beachfront-logo-e1784920902596.jpeg","width":512,"height":490,"caption":"Oasis Beachfront Hostel"},"image":{"@id":"https:\/\/oasishostelpuertoviejo.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.instagram.com\/oasis.hostel.pv\/"]}]}},"_links":{"self":[{"href":"https:\/\/oasishostelpuertoviejo.com\/en\/wp-json\/wp\/v2\/pages\/18581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oasishostelpuertoviejo.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oasishostelpuertoviejo.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oasishostelpuertoviejo.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oasishostelpuertoviejo.com\/en\/wp-json\/wp\/v2\/comments?post=18581"}],"version-history":[{"count":150,"href":"https:\/\/oasishostelpuertoviejo.com\/en\/wp-json\/wp\/v2\/pages\/18581\/revisions"}],"predecessor-version":[{"id":32020,"href":"https:\/\/oasishostelpuertoviejo.com\/en\/wp-json\/wp\/v2\/pages\/18581\/revisions\/32020"}],"wp:attachment":[{"href":"https:\/\/oasishostelpuertoviejo.com\/en\/wp-json\/wp\/v2\/media?parent=18581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}