Subversion Repositories SmartDukaan

Rev

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

Rev 11375 Rev 11519
Line 120... Line 120...
120
		if(cp!=null){
120
		if(cp!=null){
121
			try {
121
			try {
122
			pp = new ProductPojo();
122
			pp = new ProductPojo();
123
			pp.setId(cp.getId());
123
			pp.setId(cp.getId());
124
			pp.setOfferText(cp.getOfferText());
124
			pp.setOfferText(cp.getOfferText());
125
			pp.setDescription(StringUtils.join(cp.getKeySpecs().subList(0, 3),", "));
125
			pp.setDescription(StringUtils.join(cp.getKeySpecs().subList(0, Math.min(cp.getKeySpecs().size(), 3)),", "));
126
			pp.setImageUrl(cp.getIconImageUrl());
126
			pp.setImageUrl(cp.getIconImageUrl());
127
			pp.setUrl(cp.getUrl());
127
			pp.setUrl(cp.getUrl());
128
			pp.setMrp(cp.getItems().get(0).getMrp());
128
			pp.setMrp(cp.getItems().get(0).getMrp());
129
			pp.setPrice(cp.getItems().get(0).getSellingPrice());
129
			pp.setPrice(cp.getItems().get(0).getSellingPrice());
130
			pp.setTitle(cp.getTitle());
130
			pp.setTitle(cp.getTitle());