Subversion Repositories SmartDukaan

Rev

Rev 7427 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7427 Rev 7432
Line 192... Line 192...
192
			
192
			
193
			if(!isActiveOnStore) {
193
			if(!isActiveOnStore) {
194
				$("#addToCart").text("NOT AVAILABLE");
194
				$("#addToCart").text("NOT AVAILABLE");
195
				$("#addToCart").css("color", "black");
195
				$("#addToCart").css("color", "black");
196
				$("#addToCart").unbind();
196
				$("#addToCart").unbind();
197
			} else {
-
 
198
				$("#addToCart").text("ADD TO CART");
-
 
199
				$("#addToCart").css("color", "white");
-
 
200
				$("#addToCart").unbind();
-
 
201
				$("#addToCart").bind('click', function(){
-
 
202
			    	window.location = "/storewebsite/order-details?product_id=" + itemId + "&price=" + $('#mrp').text();
-
 
203
				});
-
 
204
			}
-
 
205
			
-
 
206
			if(!isActive) {
197
			} else if(!isActive) {
207
				$("#addToCart").text("OUT OF STOCK");
198
				$("#addToCart").text("OUT OF STOCK");
208
				$("#addToCart").css("color", "black");
199
				$("#addToCart").css("color", "black");
209
				$("#addToCart").unbind();
200
				$("#addToCart").unbind();
210
			} else {
201
			} else {
211
				$("#addToCart").text("ADD TO CART");
202
				$("#addToCart").text("ADD TO CART");
Line 214... Line 205...
214
				$("#addToCart").bind('click', function(){
205
				$("#addToCart").bind('click', function(){
215
			    	window.location = "/storewebsite/order-details?product_id=" + itemId + "&price=" + $('#mrp').text();
206
			    	window.location = "/storewebsite/order-details?product_id=" + itemId + "&price=" + $('#mrp').text();
216
				});
207
				});
217
			}
208
			}
218
			
209
			
-
 
210
			
219
			$('.warranty').html(response['best_deal_text']);
211
			$('.warranty').html(response['best_deal_text']);
220
			$('#mrp').html(selling_price);
212
			$('#mrp').html(selling_price);
221
			$('#minPrice').html(parseFloat(response['min_selling_price']).toFixed(2));
213
			$('#minPrice').html(parseFloat(response['min_selling_price']).toFixed(2));
222
			$('#maxPrice').html(parseFloat(response['max_selling_price']).toFixed(2));
214
			$('#maxPrice').html(parseFloat(response['max_selling_price']).toFixed(2));
223
			$('#sellingPriceBox').val(selling_price);
215
			$('#sellingPriceBox').val(selling_price);