
function something()
{

	var x =window.localStorage.getItem('cc');
	
	x = x * 1 + 1;

	window.localStorage.setItem('cc', x);

	alert(x);	
	
}


function add_to_cart(id)
{

	var key_id = 'product_' + id;
 	var x = window.localStorage.getItem(key_id);
 	x = x * 1 + 1;
 	window.localStorage.setItem(key_id, x);

 	// var total = 0; //Total numbers of products ordered

	

 	// for(var i in localStorage)
		// {
		//     console.log(localStorage[i]);
		// }
		// 	for(var i=0, len=localStorage.length; i<len; i++) {
		//     var key = localStorage.key(i);
		//     var value = localStorage[key];
		//     total = total  + value*1;
		//     console.log("Total = " + total);
		//     window.localStorage.setItem("total", total);
		    
		// }


}




function something()
{

	var x =window.localStorage.getItem('cc');
	
	x = x * 1 + 1;

	window.localStorage.setItem('cc', x);

	alert(x);	
	
}


function add_to_cart(id)
{

	var key_id = 'product_' + id;
 	var x = window.localStorage.getItem(key_id);
 	x = x * 1 + 1;
 	window.localStorage.setItem(key_id, x);


}



Fix 2 Show numbers of products on cart