Subversion Repositories SmartDukaan

Rev

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

Rev 35777 Rev 35795
Line 219... Line 219...
219
 
219
 
220
        if (detailedSpecs != null && !detailedSpecs.isEmpty()) {
220
        if (detailedSpecs != null && !detailedSpecs.isEmpty()) {
221
            desc.append("Detailed Specifications: <br>");
221
            desc.append("Detailed Specifications: <br>");
222
            for (SpecificationGroup group : detailedSpecs) {
222
            for (SpecificationGroup group : detailedSpecs) {
223
                if (group == null || group.getTitle() == null) continue;
223
                if (group == null || group.getTitle() == null) continue;
224
                desc.append(" <br>").append(group.getTitle().toUpperCase().replace(" N ", " & ").replace(" AND ", " & ")).append(": <br>");
224
                desc.append(" <br><strong>").append(group.getTitle().toUpperCase().replace(" N ", " & ").replace(" AND ", " & ")).append(":</strong> <br>");
225
 
225
 
226
                List<Specification> specs = group.getSpecs();
226
                List<Specification> specs = group.getSpecs();
227
                if (specs != null && !specs.isEmpty()) {
227
                if (specs != null && !specs.isEmpty()) {
228
                    for (Specification spec : specs) {
228
                    for (Specification spec : specs) {
229
                        if (spec == null) continue;
229
                        if (spec == null) continue;
Line 237... Line 237...
237
            }
237
            }
238
            desc.append(" <br>");
238
            desc.append(" <br>");
239
        }
239
        }
240
 
240
 
241
        if (packageContents != null && !packageContents.isEmpty()) {
241
        if (packageContents != null && !packageContents.isEmpty()) {
242
            desc.append("Package Contents: <br>");
242
            desc.append("<strong>Package Contents:</strong> <br>");
243
            for (String item : packageContents) {
243
            for (String item : packageContents) {
244
                if (item != null && !item.trim().isEmpty()) {
244
                if (item != null && !item.trim().isEmpty()) {
245
                    desc.append("• ").append(item.trim()).append(" <br>");
245
                    desc.append("• ").append(item.trim()).append(" <br>");
246
                }
246
                }
247
            }
247
            }
248
            desc.append(" <br>");
248
            desc.append(" <br>");
249
        }
249
        }
250
 
250
 
251
        if (this.offerText != null && !this.offerText.trim().isEmpty()) {
251
        if (this.offerText != null && !this.offerText.trim().isEmpty()) {
252
            desc.append("Offers: ").append(this.offerText.trim()).append("<br><br>");
252
            desc.append("<strong>Offers: </strong>").append(this.offerText.trim()).append("<br><br>");
253
        }
253
        }
254
 
254
 
255
        if (this.warranty != null && !this.warranty.trim().isEmpty()) {
255
        if (this.warranty != null && !this.warranty.trim().isEmpty()) {
256
            desc.append("Warranty: ").append(this.warranty.trim()).append(" <br>");
256
            desc.append("<strong>Warranty:</strong> ").append(this.warranty.trim()).append(" <br>");
257
        }
257
        }
258
 
258
 
259
        this.description = desc.toString().trim();
259
        this.description = desc.toString().trim();
260
	}
260
	}
261
 
261