ENTREGA E MONTAGEM GRÁTIS / Whatsapp (21) 96613-3983
Carrinho
Carrinho Vazio
BlogDuvidas
0Carrinho
Sobre a Empresa

${fullPriceText}

`; } } }); } // 1. Intercepta requisições AJAX nativas do ecossistema Tray if (typeof jQuery !== 'undefined') { jQuery(document).ajaxComplete(function(event, xhr, settings) { if (settings.url && settings.url.toLowerCase().includes('variant')) { setTimeout(fixTrayVariantPrices, 100); } }); } // 2. Garantia de fallback: Observa qualquer mutação injetada no DOM pelos scripts da Tray const observer = new MutationObserver((mutations) => { let shouldUpdate = false; mutations.forEach(mutation => { if (mutation.addedNodes.length > 0) { mutation.addedNodes.forEach(node => { if (node.classList && (node.classList.contains('product-payment') || node.classList.contains('product-price'))) { shouldUpdate = true; } else if (node.querySelector && node.querySelector('.product-payment')) { shouldUpdate = true; } }); } }); if (shouldUpdate) fixTrayVariantPrices(); }); observer.observe(document.body, { childList: true, subtree: true }); });