Hooray!! You saved '+ data.additional_setup; document.getElementById('save_setup').innerHTML =html; document.getElementById('save-new-pop-bot').style.display = 'block'; }else{ if(data.additional_discount!='$0' && data.additional_discount!=''){ document.getElementById('saveamt').innerHTML ="Hooray!! You saved "+ data.additional_discount; document.getElementById('save-new-pop-bot').innerHTML = "You now qualify for "+data.additional_discount+" OFF on your order! Your discount is applied for this product."; document.getElementById('saveamt').style.display = 'block'; document.getElementById('save-new-pop').className = 'dropdown-contentgreen'; document.getElementById('save-new-pop-bot').style.display = 'block'; document.getElementById('nosaveamt').style.display = 'none'; }else{ document.getElementById('saveamt').style.display = 'none'; document.getElementById('save-new-pop').style.display = 'none'; document.getElementById('nosaveamt').style.display = 'none'; document.getElementById('save-new-pop-bot').style.display = 'none'; } } } if(assort == 1 && data.asslowasassort != ""){ $(".viewprice-icon").remove(); $(".unitpriceblock").hide();$(".assortunitprice").remove(); $('.xnum').hide();$('.color_unitprice').remove(); $( data.asslowasassort ).insertAfter( ".itempriceblock" ); if(data.nospecialunitprice != ""){ $("[class='nospecialunitprice']").each(function(){	var nospecialunitprice=	data.nospecialunitprice.replace("$","");	$(this).html('$'+(nospecialunitprice*$(this).attr("data-qty")).toFixed(2)); }); } if(data.specialunitprice != ""){ var newspclprice=""; var spclrow= $("[class^='specialunitprice_']").each(function(){ var spclclassname=$(this).attr("class"); var spcloptionid1=spclclassname.split("_"); var spcloptionid=spcloptionid1[1];	var specialunitprice=	data.specialunitprice[spcloptionid].replace("$","");	$(this).html('$'+(specialunitprice*$(this).attr("data-qty")).toFixed(2)); $(''+data.specialunitprice[spcloptionid]+'').insertAfter('#qty'+spcloptionid); }); } if($('#product_colordata .clsrsml.active').length != 0){ $('#product_colordata .clsrsml.active').each(function(){ if($(this).find('.color_unitprice').length == 0) {	var nospecialcolorid=$(this).attr("data-id"); $(''+data.nospecialunitprice+'').insertAfter('#qty'+nospecialcolorid); } });} $('.assortunitprice .assortprice').each(function(){ var assortcolor=$(this).find('span').attr("data-color"); var htm=""; var colorelem=$(".colorselect[title='"+assortcolor+"']"); $(".colorselect[title='"+assortcolor+"']").each(function(){ htm+=$(this).clone().wrap('