"),i.addClass("productDiscounts"),r="Descuento: <\/span>",$.each(t.Discounts,function(){var n=this;r+=""+n.toFixed(2).replace(".00","").replace(".",",")+"%<\/span><\/span>"}),i.html(r),i.insertAfter(n));t!=null&&t.GrossPrice!=null?($(".non-discounted-price > span:last").html((""+t.GrossPrice).replace(".00","").replace(".",",")+" + IVA"),$(".non-discounted-price").show()):$(".non-discounted-price").show()},error:function(n,t){console.log("Discounts error",n,t)}}):$(".non-discounted-price").show()}$(document).ready(function(){CheckForDiscounts()})