Subversion Repositories SmartDukaan

Rev

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

Rev 19705 Rev 19706
Line 59... Line 59...
59
	$('#computeShippingEstimate').click(function(){
59
	$('#computeShippingEstimate').click(function(){
60
		updateEstimate(getSeletectedItemId());
60
		updateEstimate(getSeletectedItemId());
61
	});
61
	});
62
	
62
	
63
    $("#addToCart").click(function(){
63
    $("#addToCart").click(function(){
-
 
64
    $('<form action="/storewebsite/order-details" method="post">' +
-
 
65
    	'<input name="product_id" value="' + getSeletectedItemId()+'"/>' +
-
 
66
    	'<input name="price" value="' + $('#mrp').text() +'"/>' +
-
 
67
      '</form>').submit();
64
    	window.location = "/storewebsite/order-details?product_id=" + getSeletectedItemId() + "&price=" + $('#mrp').text();
68
    	//window.location = "/storewebsite/order-details?product_id=" + getSeletectedItemId() + "&price=" + $('#mrp').text();
65
	});
69
	});
66
	
70
	
67
	$("#colorSelector").change(function(){
71
	$("#colorSelector").change(function(){
68
		var itemid = $("#colorSelector option:selected").val();
72
		var itemid = $("#colorSelector option:selected").val();
69
		onColorSelectorChange(itemid);
73
		onColorSelectorChange(itemid);