-->
$.getJSON(
'/store/services/pricing/json/skuPricing.jsp?skuIds=160507CS' + '&salesOrg=8600&salesOffice=8662&profileLocale=en_US&promoCatalogNumber=&promoCatalogNumberForSkuId=&forcePromo=false',
function(data){
$.each(data, function(index, item){
var skuId = item.skuId;
item.skuId = item.skuId.split('/').join('_');
//$("#SA"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.salePrice);
//$("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.listPrice);
//reset the value
var bestPrice='',clearanceFontStart='',clearanceFontEnd= '';
if(item.callForPriceIndicator == 'true'){
var ifpEnabled = false;
var ifpHtml = "";
if (ifpEnabled) {
var ifpParam = $("#ifpParam_"+jqEscapeId(item.skuId.replace(' ','_'))).text();
ifpHtml = "
Inquire for Price";
$("#S"+jqEscapeId(item.skuId.replace(' ','_'))).html(ifpHtml);
$("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html(ifpHtml);
} else {
var ifpParam = item.skuId + "LogInToRequest";
ifpHtml = "Inquire for Price";
$("#S"+jqEscapeId(item.skuId.replace(' ','_'))).html(ifpHtml);
$("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html(ifpHtml);
}
$("#QTY"+jqEscapeId(item.skuId.replace(' ','_')) + " input").prop('disabled',true);
$("#QTY"+jqEscapeId(item.skuId.replace(' ','_')) + " button").prop('disabled',true);
} else {
if(item.promoPrice !="" && item.promoPriceUsed == 'true'){
if(item.clearancePriceEnabled == 'true') {
bestPrice = "";
clearanceFontStart = '';
clearanceFontEnd = '';
$("#clearance").css("display","block");
} else {
bestPrice = 'Sale Price:
'; } } if(!$("#showContractPrice").val()){ if(item.promoPrice !="" && item.promoPriceUsed=="true"){ $("#CATNUM"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.promoCatNumber); if(true){ $("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html('
'+item.expertPrice); } else{ $("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.listPrice); } }else{ // Logged in user for sure, so there is no need for additional checks here. if(item.promoPrice !="" && item.promoPriceUsed=="true"){ $("#CATNUM"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.promoCatNumber); $("#SA"+jqEscapeId(item.skuId.replace(' ','_'))).html('
'; } } if(!$("#showContractPrice").val()){ if(item.promoPrice !="" && item.promoPriceUsed=="true"){ $("#CATNUM"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.promoCatNumber); if(true){ $("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html('
'+item.listPrice+'
'+bestPrice + clearanceFontStart + item.promoPrice + clearanceFontEnd); $("#PM"+jqEscapeId(item.skuId.replace(' ','_'))).html(function() { return $('').html(item.promoMessage).text()}); }else{ $("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.promoPrice); $("#PM"+jqEscapeId(item.skuId.replace(' ','_'))).html(function() { return $('').html(item.promoMessage).text()}); } }else if (false && item.expertPrice !="" && item.expertPriceUsed == 'true'){ document.getElementById("expertPrice_tooltip").style.display = "inline"; $("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html(''+item.listPrice+'
Limited Time Discount Price:'+item.expertPrice); } else{ $("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.listPrice); } }else{ // Logged in user for sure, so there is no need for additional checks here. if(item.promoPrice !="" && item.promoPriceUsed=="true"){ $("#CATNUM"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.promoCatNumber); $("#SA"+jqEscapeId(item.skuId.replace(' ','_'))).html('
'+ item.listPrice + '
'+bestPrice + clearanceFontStart + item.promoPrice + clearanceFontEnd); $("#PM"+jqEscapeId(item.skuId.replace(' ','_'))).html(function() { return $('').html(item.promoMessage).text()}); } else { $("#SA"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.salePrice); } //Fill the List price column irrespectively $("#L"+jqEscapeId(item.skuId.replace(' ','_'))).html(item.listPrice); } /* checking CSM alternatives for each product */ if(item.contractPriceFail == "false"){ } } }); }); function callCostSavingEventNotificationIcon(skuId){ $.getJSON( '/store/services/pricing/json/costSavingEventNotification.jsp?originalSkuId='+skuId+'&type=displayedSuggestionIcon', function(data){ }); }