Subversion Repositories SmartDukaan

Rev

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

Rev 17940 Rev 17941
Line 560... Line 560...
560
					}
560
					}
561
					cartObj.put("cartMessages", cartMessagesArray);
561
					cartObj.put("cartMessages", cartMessagesArray);
562
						
562
						
563
					if (maxEstimate==-1){
563
					if (maxEstimate==-1){
564
						cartObj.put("estimateString", "Can't ship here");
564
						cartObj.put("estimateString", "Can't ship here");
-
 
565
					}
-
 
566
					else if(maxEstimate==-2){
-
 
567
						cartObj.put("estimateString", "Out of Stock");
565
					} else {
568
					} else {
566
						if(itemsList.size() == 0){
569
						if(itemsList.size() == 0){
567
							cartObj.put("cod", getClient().showCODOption(id, 0, userinfo.getPincode()));
570
							cartObj.put("cod", getClient().showCODOption(id, 0, userinfo.getPincode()));
568
						}
571
						}
569
						cartObj.put("estimateString", LogisticsService.getDeliveryDateString(maxEstimate,DeliveryType.COD));
572
						cartObj.put("estimateString", LogisticsService.getDeliveryDateString(maxEstimate,DeliveryType.COD));