Subversion Repositories SmartDukaan

Rev

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

Rev 19709 Rev 19710
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">' +
64
    	window.location = "/storewebsite/order-details?product_id=" + getSeletectedItemId() + "&price=" + $('#mrp').text();
65
    	'<input name="product_id" value="' + getSeletectedItemId()+'"/>' +
-
 
66
    	'<input name="price" value="' + $('#mrp').text() +'"/>' +
-
 
67
      '</form>').submit();
-
 
68
	});
65
	});
69
	
66
	
70
	$("#colorSelector").change(function(){
67
	$("#colorSelector").change(function(){
71
		var itemid = $("#colorSelector option:selected").val();
68
		var itemid = $("#colorSelector option:selected").val();
72
		onColorSelectorChange(itemid);
69
		onColorSelectorChange(itemid);
Line 217... Line 214...
217
			} else {
214
			} else {
218
				$("#addToCart").text("ADD TO CART");
215
				$("#addToCart").text("ADD TO CART");
219
				$("#addToCart").css("color", "white");
216
				$("#addToCart").css("color", "white");
220
				$("#addToCart").unbind();
217
				$("#addToCart").unbind();
221
				$("#addToCart").bind('click', function(){
218
				$("#addToCart").bind('click', function(){
222
			    	window.location = "/storewebsite/order-details?product_id=" + itemId + "&price=" + $('#mrp').text();
219
			    	$('<form action="/storewebsite/order-details" method="POST">' +
-
 
220
				    	'<input name="product_id" value="' + getSeletectedItemId()+'"/>' +
-
 
221
				    	'<input name="price" value="' + $('#mrp').text() +'"/>' +
-
 
222
			      	'</form>').submit();
223
				});
223
				});
224
			}
224
			}
225
			
225
			
226
			if(selling_price == 0) {
226
			if(selling_price == 0) {
227
				$("#addToCart").text("NOT AVAILABLE");
227
				$("#addToCart").text("NOT AVAILABLE");