| Line 668... |
Line 668... |
| 668 |
}
|
668 |
}
|
| 669 |
return titleString;
|
669 |
return titleString;
|
| 670 |
}
|
670 |
}
|
| 671 |
|
671 |
|
| 672 |
public String getMetaDescription(){
|
672 |
public String getMetaDescription(){
|
| 673 |
Category parentCategory = defs.getCategory(entity.getCategoryID()).getParentCategory();
|
673 |
Category cat = defs.getCategory(entity.getCategoryID());
|
| - |
|
674 |
Category parentCategory = cat.getParentCategory();
|
| 674 |
String categoryName = parentCategory.getLabel();
|
675 |
String categoryName = parentCategory.getLabel();
|
| 675 |
if (parentCategory.getID()== Utils.MOBILE_ACCESSORIES_CATEGORY){
|
676 |
if (parentCategory.getID()== Utils.MOBILE_ACCESSORIES_CATEGORY){
|
| 676 |
categoryName = expEntity.getCategory().getLabel();
|
677 |
categoryName = cat.getLabel();
|
| 677 |
}
|
678 |
}
|
| 678 |
String template = "Buy {0} {1} {2} at $minPriceItem.getSellingPrice(). All {3} are 100% Original and carry full Manufacturers Warranty since we procure directly from the Brand. Free Next Day Delivery.";
|
679 |
String template = "Buy {0} {1} {2} at $minPriceItem.getSellingPrice(). All {3} are 100% Original and carry full Manufacturers Warranty since we procure directly from the Brand. Free Next Day Delivery.";
|
| 679 |
return MessageFormat.format(template, entity.getBrand(), entity.getModelName(), entity.getModelNumber(), categoryName.toLowerCase());
|
680 |
return MessageFormat.format(template, entity.getBrand(), entity.getModelName(), entity.getModelNumber(), categoryName.toLowerCase());
|
| 680 |
}
|
681 |
}
|
| 681 |
|
682 |
|