⏳ PAGUE AGORA VIA PIX, John...
Pedido não encontrado. Você não pode acessar esta página diretamente.
Atualizando status automaticamente...
Verificar Pagamento Agora
/* Oculta WhatsApp */ .joinchat { display: none !important; } /* Botão de Download (caso exista) */ .woocommerce-order-received a.button.download-file { background-color: #28a745 !important; color: white !important; border-radius: 6px !important; padding: 15px 30px !important; font-size: 16px !important; text-transform: uppercase !important; font-weight: 800 !important; display: block; margin: 15px auto; max-width: 100%; text-align: center; box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2); text-decoration: none !important; } document.addEventListener("DOMContentLoaded", function() { // ============================================================ // PARTE 1: CORREÇÃO DO TEXTO DO FRETE (NOVO) // ============================================================ // Roda a cada meio segundo para garantir que o texto seja corrigido // assim que o FunnelKit carregar os detalhes do pedido. setInterval(function() { // Seleciona todos os lugares onde o frete pode aparecer var alvosFrete = document.querySelectorAll('.shipped_via, .wfty_order_details td, ul.order_details li, small'); alvosFrete.forEach(function(el) { // Verifica se tem "Entrega em" e se já não foi corrigido if (el.innerHTML.indexOf('Entrega em') !== -1 && el.innerHTML.indexOf('Receba em até') === -1) { // Troca o texto mantendo o resto do HTML el.innerHTML = el.innerHTML.replace(/Entrega em(\s+at[eé])?/gi, 'Receba em até'); } }); }, 500); // ============================================================ // PARTE 2: LÓGICA DO BOTÃO E TÍTULO (SEU CÓDIGO ORIGINAL) // ============================================================ // --- CONFIGURAÇÃO --- var linkDestino = "https://tropicalespeciarias.com.br/blog/"; var textoBotao = "CONHEÇA RECEITAS NO BLOG"; // -------------------- var pixVisivel = document.querySelector('.paghiper-pix-code') || document.querySelector('.pix-container'); var containerBotao = document.getElementById('container-botao-verificar'); // PROCURA O TÍTULO DENTRO DO ELEMENTOR var wrapperTitulo = document.getElementById('titulo-status'); var tituloReal = wrapperTitulo ? wrapperTitulo.querySelector('h1, h2, h3, h4, .elementor-heading-title') : null; if(!tituloReal) tituloReal = wrapperTitulo; // === CENÁRIO 1: AINDA NÃO PAGOU === if (pixVisivel) { setTimeout(function() { window.location.reload(); }, 30000); } // === CENÁRIO 2: PAGAMENTO CONFIRMADO === else { if (tituloReal) { // 1. LIMPEZA INTELIGENTE DO NOME var textoOriginal = tituloReal.innerText; var apenasNome = textoOriginal .replace(/⏳/g, "") .replace(/PAGUE AGORA VIA PIX/gi, "") .replace(/Aguardando Pagamento/gi, "") .replace(/Falta pouco/gi, "") .replace(/,/g, "").replace(/\./g, "").replace(/\.\.\./g, "") .trim(); var nomeMaiusculo = apenasNome.toUpperCase(); // 2. ALTERA SÓ O TEXTO E A COR tituloReal.innerHTML = '✅ PAGAMENTO CONFIRMADO, ' + nomeMaiusculo + '!'; tituloReal.style.color = "#28a745"; // 3. CONTAINER DE SUCESSO var containerSucesso = document.createElement("div"); containerSucesso.style.display = "block"; containerSucesso.style.width = "100%"; containerSucesso.style.textAlign = "center"; containerSucesso.style.marginTop = "15px"; containerSucesso.style.paddingBottom = "40px"; containerSucesso.style.marginBottom = "40px"; containerSucesso.style.borderBottom = "1px solid #e1e1e1"; containerSucesso.style.clear = "both"; // Mensagem Personalizada var paragrafoTexto = document.createElement("p"); paragrafoTexto.innerHTML = "A partir de agora nossa equipe iniciará a preparação de seu pedido.
Enviaremos o rastreio de seu pedido por e-mail."; paragrafoTexto.style.fontSize = "15px"; paragrafoTexto.style.color = "#666"; paragrafoTexto.style.lineHeight = "1.6"; paragrafoTexto.style.margin = "0 0 25px 0"; containerSucesso.appendChild(paragrafoTexto); // Botão Blog if(linkDestino && textoBotao){ var btnExtra = document.createElement("a"); btnExtra.href = linkDestino; btnExtra.innerText = textoBotao; btnExtra.style.display = "inline-block"; btnExtra.style.padding = "14px 25px"; btnExtra.style.border = "2px solid #28a745"; btnExtra.style.borderRadius = "50px"; btnExtra.style.color = "#28a745"; btnExtra.style.textDecoration = "none"; btnExtra.style.fontWeight = "700"; btnExtra.style.fontSize = "13px"; btnExtra.style.letterSpacing = "0.5px"; btnExtra.style.textTransform = "uppercase"; btnExtra.style.transition = "all 0.3s ease"; btnExtra.onmouseover = function() { this.style.backgroundColor = "#28a745"; this.style.color = "#fff"; }; btnExtra.onmouseout = function() { this.style.backgroundColor = "transparent"; this.style.color = "#28a745"; }; containerSucesso.appendChild(btnExtra); } // Insere APÓS o wrapper do título wrapperTitulo.parentNode.insertBefore(containerSucesso, wrapperTitulo.nextSibling); } if (containerBotao) containerBotao.style.display = 'none'; setTimeout(function(){ window.scrollTo({ top: 0, behavior: 'smooth' }); }, 500); } });
© Tropical Especiarias e Bubbles Com. Ltda
CNPJ: 37.811.508/0001-80
plugins premium WordPress
WhatsApp
Olá 👋 Boas-vindas ao site da Magia em Cristal!
Precisa de ajuda para escolher um produto ou concluir seu pedido?
Converse com a nossa equipe pelo WhatsApp.
Abrir bate-papo
Powered by
Joinchat