Subversion Repositories SmartDukaan

Rev

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

Rev 18025 Rev 18026
Line 180... Line 180...
180
	var currentShippingCharges = $('div.cartitemstotal span.shippingval').text().split(" ");
180
	var currentShippingCharges = $('div.cartitemstotal span.shippingval').text().split(" ");
181
	currentShippingCharges = parseInt(currentShippingCharges[1]);
181
	currentShippingCharges = parseInt(currentShippingCharges[1]);
182
	var currentItemTotal = $('div.cartitemstotal span.itemstotal').text().split(" ");
182
	var currentItemTotal = $('div.cartitemstotal span.itemstotal').text().split(" ");
183
	currentItemTotal = currentItemTotal[1].toString();
183
	currentItemTotal = currentItemTotal[1].toString();
184
	currentItemTotal = currentItemTotal.split(',').join("");
184
	currentItemTotal = currentItemTotal.split(',').join("");
185
	currentItemTotal = parseFloat(currentItemTotal[1]);
185
	currentItemTotal = parseFloat(currentItemTotal);
186
	if(currentShippingCharges>0){
186
	if(currentShippingCharges>0){
187
		if(currentItemTotal>0){
187
		if(currentItemTotal>0){
188
			var additionalAmount = 1000.0-currentItemTotal;
188
			var additionalAmount = 1000.0-currentItemTotal;
189
			additionalAmount = additionalAmount.toFixed();
189
			additionalAmount = additionalAmount.toFixed();
190
			$('span.cartheader').attr('style', 'font-size: 8pt;padding-left: 18px;');
190
			$('span.cartheader').attr('style', 'font-size: 8pt;padding-left: 18px;');