| Line 298... |
Line 298... |
| 298 |
}
|
298 |
}
|
| 299 |
|
299 |
|
| 300 |
irDataXMLSnippets.add(this.xmlIndentation[2] + "<ProductMRP>" + getMinMRP(items) + "</ProductMRP>");
|
300 |
irDataXMLSnippets.add(this.xmlIndentation[2] + "<ProductMRP>" + getMinMRP(items) + "</ProductMRP>");
|
| 301 |
|
301 |
|
| 302 |
LogisticsInfo logisticsInfo = null;
|
302 |
LogisticsInfo logisticsInfo = null;
|
| 303 |
/*if(prod_client != null){
|
303 |
if(prod_client != null){
|
| 304 |
try {
|
304 |
try {
|
| 305 |
Long itemId = prod_client.getEntityLogisticsEstimation(
|
305 |
Long itemId = prod_client.getEntityLogisticsEstimation(
|
| 306 |
entityId, DEFAULT_PINCODE, DeliveryType.PREPAID)
|
306 |
entityId, DEFAULT_PINCODE, DeliveryType.PREPAID)
|
| 307 |
.get(0).getItemId();
|
307 |
.get(0).getItemId();
|
| 308 |
logisticsInfo = prod_client.getLogisticsEstimation(itemId,
|
308 |
logisticsInfo = prod_client.getLogisticsEstimation(itemId,
|
| 309 |
DEFAULT_PINCODE, DeliveryType.PREPAID);
|
309 |
DEFAULT_PINCODE, DeliveryType.PREPAID);
|
| 310 |
irDataXMLSnippets.add(this.xmlIndentation[2] + "<ProductDeliveryEstimate>" + logisticsInfo.getDeliveryTime() + "</ProductDeliveryEstimate>");
|
310 |
irDataXMLSnippets.add(this.xmlIndentation[2] + "<ProductDeliveryEstimate>" + logisticsInfo.getDeliveryTime() + "</ProductDeliveryEstimate>");
|
| 311 |
} catch (Exception e1) {
|
311 |
} catch (Exception e1) {
|
| 312 |
Utils.info("Unable to get Estimation for Entity: " + entityId + "\n" + e1);
|
312 |
Utils.info("Unable to get Estimation for Entity: " + entityId + "\n" + e1);
|
| 313 |
}
|
313 |
}
|
| 314 |
}*/
|
314 |
}
|
| 315 |
irDataXMLSnippets.add(this.xmlIndentation[2] + "<ProductImageURL>" + imageUrl + "</ProductImageURL>");
|
315 |
irDataXMLSnippets.add(this.xmlIndentation[2] + "<ProductImageURL>" + imageUrl + "</ProductImageURL>");
|
| 316 |
|
316 |
|
| 317 |
irDataXMLSnippets.add(this.xmlIndentation[1] + "</products>");
|
317 |
irDataXMLSnippets.add(this.xmlIndentation[1] + "</products>");
|
| 318 |
}
|
318 |
}
|
| 319 |
}
|
319 |
}
|
| Line 377... |
Line 377... |
| 377 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductURL>" + StringEscapeUtils.escapeXml(url) + "</ProductURL>");
|
377 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductURL>" + StringEscapeUtils.escapeXml(url) + "</ProductURL>");
|
| 378 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductPrice>" + getMinPrice(items) + "</ProductPrice>");
|
378 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductPrice>" + getMinPrice(items) + "</ProductPrice>");
|
| 379 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductMRP>" + getMinMRP(items) + "</ProductMRP>");
|
379 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductMRP>" + getMinMRP(items) + "</ProductMRP>");
|
| 380 |
|
380 |
|
| 381 |
LogisticsInfo logisticsInfo = null;
|
381 |
LogisticsInfo logisticsInfo = null;
|
| 382 |
/*if(prod_client != null){
|
382 |
if(prod_client != null){
|
| 383 |
try {
|
383 |
try {
|
| 384 |
Long itemId = prod_client.getEntityLogisticsEstimation(entityId, DEFAULT_PINCODE, DeliveryType.PREPAID).get(0).getItemId();
|
384 |
Long itemId = prod_client.getEntityLogisticsEstimation(entityId, DEFAULT_PINCODE, DeliveryType.PREPAID).get(0).getItemId();
|
| 385 |
logisticsInfo = prod_client.getLogisticsEstimation(itemId, DEFAULT_PINCODE, DeliveryType.PREPAID);
|
385 |
logisticsInfo = prod_client.getLogisticsEstimation(itemId, DEFAULT_PINCODE, DeliveryType.PREPAID);
|
| 386 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductDeliveryEstimate>" + logisticsInfo.getDeliveryTime() + "</ProductDeliveryEstimate>");
|
386 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductDeliveryEstimate>" + logisticsInfo.getDeliveryTime() + "</ProductDeliveryEstimate>");
|
| 387 |
} catch (Exception e1) {
|
387 |
} catch (Exception e1) {
|
| 388 |
Utils.info("Unable to get Estimation for Entity: " + entityId + "\n" + e1);
|
388 |
Utils.info("Unable to get Estimation for Entity: " + entityId + "\n" + e1);
|
| 389 |
}
|
389 |
}
|
| 390 |
}*/
|
390 |
}
|
| 391 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductImageURL>" + imageUrl + "</ProductImageURL>");
|
391 |
accessoriesXMLSnippets.add(this.xmlIndentation[2] + "<ProductImageURL>" + imageUrl + "</ProductImageURL>");
|
| 392 |
accessoriesXMLSnippets.add(this.xmlIndentation[1] + "</products>");
|
392 |
accessoriesXMLSnippets.add(this.xmlIndentation[1] + "</products>");
|
| 393 |
}
|
393 |
}
|
| 394 |
|
394 |
|
| 395 |
accessoriesXMLSnippets.add("</saholic.com>");
|
395 |
accessoriesXMLSnippets.add("</saholic.com>");
|
| Line 443... |
Line 443... |
| 443 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductURL>" + StringEscapeUtils.escapeXml(url) + "</ProductURL>");
|
443 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductURL>" + StringEscapeUtils.escapeXml(url) + "</ProductURL>");
|
| 444 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductPrice>" + getMinPrice(items) + "</ProductPrice>");
|
444 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductPrice>" + getMinPrice(items) + "</ProductPrice>");
|
| 445 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductMRP>" + getMinMRP(items) + "</ProductMRP>");
|
445 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductMRP>" + getMinMRP(items) + "</ProductMRP>");
|
| 446 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<Availability>" + (inStockCatalogItemIds.contains(entityId) ? "Y" : "N") + "</Availability>");
|
446 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<Availability>" + (inStockCatalogItemIds.contains(entityId) ? "Y" : "N") + "</Availability>");
|
| 447 |
|
447 |
|
| 448 |
/* LogisticsInfo logisticsInfo = null;
|
448 |
LogisticsInfo logisticsInfo = null;
|
| 449 |
if(prod_client != null){
|
449 |
if(prod_client != null){
|
| 450 |
try {
|
450 |
try {
|
| 451 |
Long itemId = prod_client.getEntityLogisticsEstimation(entityId, DEFAULT_PINCODE, DeliveryType.PREPAID).get(0).getItemId();
|
451 |
Long itemId = prod_client.getEntityLogisticsEstimation(entityId, DEFAULT_PINCODE, DeliveryType.PREPAID).get(0).getItemId();
|
| 452 |
logisticsInfo = prod_client.getLogisticsEstimation(itemId, DEFAULT_PINCODE, DeliveryType.PREPAID);
|
452 |
logisticsInfo = prod_client.getLogisticsEstimation(itemId, DEFAULT_PINCODE, DeliveryType.PREPAID);
|
| 453 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductDeliveryEstimate>" + logisticsInfo.getDeliveryTime() + "</ProductDeliveryEstimate>");
|
453 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductDeliveryEstimate>" + logisticsInfo.getDeliveryTime() + "</ProductDeliveryEstimate>");
|
| 454 |
} catch (Exception e1) {
|
454 |
} catch (Exception e1) {
|
| 455 |
Utils.info("Unable to get Estimation for Entity: " + entityId + "\n" + e1);
|
455 |
Utils.info("Unable to get Estimation for Entity: " + entityId + "\n" + e1);
|
| 456 |
}
|
456 |
}
|
| 457 |
}*/
|
457 |
}
|
| 458 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductImageURL>" + imageUrl + "</ProductImageURL>");
|
458 |
camerasXMLSnippets.add(this.xmlIndentation[2] + "<ProductImageURL>" + imageUrl + "</ProductImageURL>");
|
| 459 |
camerasXMLSnippets.add(this.xmlIndentation[1] + "</products>");
|
459 |
camerasXMLSnippets.add(this.xmlIndentation[1] + "</products>");
|
| 460 |
}
|
460 |
}
|
| 461 |
|
461 |
|
| 462 |
camerasXMLSnippets.add("</saholic.com>");
|
462 |
camerasXMLSnippets.add("</saholic.com>");
|