Subversion Repositories SmartDukaan

Rev

Rev 12628 | Rev 12632 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12628 Rev 12631
Line 370... Line 370...
370
		});
370
		});
371
	}
371
	}
372
}
372
}
373
function onColorSelectorChange(itemid){
373
function onColorSelectorChange(itemid){
374
	$('div.shipping1').remove();
374
	$('div.shipping1').remove();
-
 
375
	$('span.mk_emi').show();
375
	$('div.shipping').show();
376
	$('div.shipping').show();
376
	$('#addToCart').removeAttr("href");
377
	$('#addToCart').removeAttr("href");
377
	if(typeof privateDeals[itemid]== "undefined") {
378
	if(typeof privateDeals[itemid]== "undefined") {
378
		sellingPrice = Number(PARAMETERS[itemid].SP); 
379
		sellingPrice = Number(PARAMETERS[itemid].SP); 
379
		if($('#sp').length>0){
380
		if($('#sp').length>0){
Line 394... Line 395...
394
			 		2 : 'amazon_logo.png',
395
			 		2 : 'amazon_logo.png',
395
			 		3 : 'snapdeal_logo.png'
396
			 		3 : 'snapdeal_logo.png'
396
			 	};
397
			 	};
397
			 	if(typeof exclusiveAffiliateItem != "undefined"){
398
			 	if(typeof exclusiveAffiliateItem != "undefined"){
398
					var innerhtml = '<div class="shipping1 left"><div style="background-color: #FAFAFA;padding:4px;font-size: 14px;">Available on '
399
					var innerhtml = '<div class="shipping1 left"><div style="background-color: #FAFAFA;padding:4px;font-size: 14px;">Available on '
399
						+ exclusiveAffiliateItem.affiliateName+'</div><div style="padding: 10px;background-color:#FFF;padding-left: 136px;background-image: url(\'/unversioned/images/' + sellerImg[exclusiveAffiliateItem.affiliateId] + '\');background-repeat: no-repeat;background-size: 120px;color: #777777;font-size: 14px;">'
400
						+ exclusiveAffiliateItem.affiliateName+'</div><div style="padding: 10px;background-color:#FFF;padding-left: 136px;background-image: url(\'/unversioned/images/' + sellerImg[exclusiveAffiliateItem.affiliateId] + '\');background-repeat: no-repeat;background-size: 120px;color: #777777;font-size: 14px;background-position:left">'
400
						+ (typeof exclusiveAffiliateItem.offerText=="undefined"?'':exclusiveAffiliateItem.offerText) + '</div></div>';
401
						+ (typeof exclusiveAffiliateItem.offerText=="undefined"?'':exclusiveAffiliateItem.offerText) + '</div></div>';
401
					$("#addToCart").attr("href", exclusiveAffiliateItem.affiliateUrl);	
402
					$("#addToCart").attr("href", exclusiveAffiliateItem.affiliateUrl);	
402
					$('div.shipping').hide();
403
					$('div.shipping').hide();
-
 
404
					$('span.mk_emi').hide();
403
					$(innerhtml).insertAfter('div.shipping');
405
					$(innerhtml).insertAfter('div.shipping');
404
				}
406
				}
405
				
407
				
406
			}
408
			}
407
		}
409
		}