Replace the code of this block:
// Imprime os preços internos
// Aqui é para limpar os excessos do setInterval
var counter = 0
var timer = setInterval(function(){
if($(".ecwid-productBrowser-details").is(":visible")){
mostra = "";
}else{
mostra = "display: none;";
}
if(counter >= 0){
$("h5").remove()
}
counter++
// Aqui pega as classes para serem tratadas
var demo = $('div.ecwid-productBrowser-price');
demo.each(function() {
var valor = parseInt(this.innerHTML.replace(/\./g, '').replace(',','.').substr(2) / 3, 10).toFixed(2).replace('.',',')
$(this).after("<h5 class='demo' style='"+mostra+"color: #e9d0ba;font-size:15px;'>3x de " +valor+ " sem juros </h5>")
})
}, 1000)
Fiddle
Already has a "3x without interest" showing above. Where has the Nan would be the same value?
– Sam
Yes, there are two "interest-free" on the front screen, one normal and the other with "Nan". I want to eliminate this one with "Nan" but I can’t do it at all! The one with Nan is the same as the one inside each product. That is, he prints right inside and out he prints wrong
– BamDev
Look at the answer I posted.
– Sam