Subversion Repositories SmartDukaan

Rev

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

Rev 13035 Rev 19685
Line 665... Line 665...
665
			}
665
			}
666
		}
666
		}
667
	}
667
	}
668
    
668
    
669
    public String getTitle(){
669
    public String getTitle(){
670
    	String brand = entity.getBrand();
-
 
671
    	String modelName = entity.getModelName();
-
 
672
    	String modelNumber = entity.getModelNumber();
-
 
673
    	String titleString = "";
-
 
674
    	if(StringUtils.isEmpty(modelName)){
-
 
675
    		titleString = brand + " " + modelNumber + " Price in India | Specifications, Features and Reviews";
-
 
676
    	}else {
-
 
677
    		titleString = brand + " " + modelName  + " " + modelNumber +" Price in India | Specifications, Features and Reviews";
-
 
678
    	}
-
 
679
    	return titleString;
670
    	return EntityUtils.getTitle(entity);
680
    }
671
    }
681
    
672
    
682
    public String getMetaDescription(){
673
    public String getMetaDescription(){
683
    	Category cat = defs.getCategory(entity.getCategoryID());
674
    	return EntityUtils.getMetaDescription(entity, defs);
684
    	Category parentCategory = cat.getParentCategory();
-
 
685
    	String categoryName = parentCategory.getLabel();
-
 
686
    	if (parentCategory.getID()== Utils.MOBILE_ACCESSORIES_CATEGORY){
-
 
687
    		categoryName = cat.getLabel();
-
 
688
    	}
-
 
689
    	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.";
-
 
690
    	return MessageFormat.format(template, entity.getBrand(), entity.getModelName(), entity.getModelNumber(), categoryName.toLowerCase());
-
 
691
    }
675
    }
692
 
676
 
693
	/**
677
	/**
694
     * 
678
     * 
695
     * @param entityID
679
     * @param entityID