Subversion Repositories SmartDukaan

Rev

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

Rev 20986 Rev 20987
Line 511... Line 511...
511
									cartObj.put("cartMessagesMerged", cartObj.getInt("cartMessagesMerged") + 1);
511
									cartObj.put("cartMessagesMerged", cartObj.getInt("cartMessagesMerged") + 1);
512
								}
512
								}
513
							 }
513
							 }
514
						}
514
						}
515
						ProductPojo pp = PojoPopulator.getShortContent(itemObj.getLong("catalogItemId"));
515
						ProductPojo pp = PojoPopulator.getShortContent(itemObj.getLong("catalogItemId"));
516
						
-
 
517
						String productProperties = ContentServingService.getSnippet(SnippetType.PRODUCT_PROPERTIES_SNIPPET, pp.getId() +"", -1);
516
						String productProperties = ContentServingService.getSnippet(SnippetType.PRODUCT_PROPERTIES_SNIPPET, pp.getId() +"", -1);
518
						
-
 
519
						JSONObject productPropertiesInJson = new JSONObject(productProperties);
517
						JSONObject productPropertiesInJson = new JSONObject(productProperties);
520
						productPropertiesInJson.getString("categoryName");
518
						pp.setCategoryName(productPropertiesInJson.getString("categoryName"));
-
 
519
						
521
						if(itemObj.has("estimate")){
520
						if(itemObj.has("estimate")){
522
							if(allSame){
521
							if(allSame){
523
								allSame = maxEstimate==-2 || maxEstimate==itemObj.getInt("estimate");
522
								allSame = maxEstimate==-2 || maxEstimate==itemObj.getInt("estimate");
524
							}
523
							}
525
							if(itemObj.getInt("estimate") > maxEstimate){
524
							if(itemObj.getInt("estimate") > maxEstimate){