Subversion Repositories SmartDukaan

Rev

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

Rev 17829 Rev 17830
Line 160... Line 160...
160
		}
160
		}
161
	}else{
161
	}else{
162
			payable = parseInt(totalCartValue);
162
			payable = parseInt(totalCartValue);
163
			$('.cartitemstotal').addClass('hidden');
163
			$('.cartitemstotal').addClass('hidden');
164
	}
164
	}
165
	$('.cartgrandtotal span.pull-right').text('₹ '+numberWithCommas());
165
	$('.cartgrandtotal span.pull-right').text('₹ '+numberWithCommas(payable));
166
	localStorage.setItem('cart_details',JSON.stringify(cartDetailsObj));
166
	localStorage.setItem('cart_details',JSON.stringify(cartDetailsObj));
167
});
167
});
168
 
168
 
169
function numberWithCommas(x) {
169
function numberWithCommas(x) {
170
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
170
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");