Subversion Repositories SmartDukaan

Rev

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

Rev 2488 Rev 2547
Line 422... Line 422...
422
		params.put("PRODUCT_NAME", productName);
422
		params.put("PRODUCT_NAME", productName);
423
		params.put("CATEGORY_ID", ((int)categoryId)+"");
423
		params.put("CATEGORY_ID", ((int)categoryId)+"");
424
		params.put("CATEGORY_NAME", categoryName);
424
		params.put("CATEGORY_NAME", categoryName);
425
		params.put("CATEGORY_URL", categoryName.replaceAll(" ", "-").toLowerCase() + "/" + categoryId);
425
		params.put("CATEGORY_URL", categoryName.replaceAll(" ", "-").toLowerCase() + "/" + categoryId);
426
		params.put("PRODUCT_URL", URLEncoder.encode("http://www.", "UTF-8") + "${domain}"  + URLEncoder.encode(this.getEntityURL(expEntity), "UTF-8"));
426
		params.put("PRODUCT_URL", URLEncoder.encode("http://www.", "UTF-8") + "${domain}"  + URLEncoder.encode(this.getEntityURL(expEntity), "UTF-8"));
427
		if(expEntity.getCategory().getParentCategory().getID() == Utils.MOBILE_PHONES_CATAGOEY){
427
		if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY){
428
			params.put("IS_MOBILE", "TRUE" );	
428
			params.put("IS_MOBILE", "TRUE" );	
429
		}else{
429
		}else{
430
			params.put("IS_MOBILE", "FALSE" );
430
			params.put("IS_MOBILE", "FALSE" );
431
		}
431
		}
432
		params.put("CATALOG_ID", expEntity.getID()+"");
432
		params.put("CATALOG_ID", expEntity.getID()+"");
Line 491... Line 491...
491
		filenames.add("HomeSnippet");
491
		filenames.add("HomeSnippet");
492
		filenames.add("SearchSnippet");
492
		filenames.add("SearchSnippet");
493
		filenames.add("CategorySnippet");
493
		filenames.add("CategorySnippet");
494
		filenames.add("SlideGuide");
494
		filenames.add("SlideGuide");
495
		
495
		
496
		if(expEntity.getCategory().getParentCategory().getID() == Utils.MOBILE_PHONES_CATAGOEY){
496
		if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY){
497
			filenames.add("PhonesIOwnSnippet");
497
			filenames.add("PhonesIOwnSnippet");
498
			filenames.add("CompareProductSnippet");
498
			filenames.add("CompareProductSnippet");
499
			filenames.add("ComparisonSnippet");
499
			filenames.add("ComparisonSnippet");
500
			filenames.add("CompareProductSummarySnippet");
500
			filenames.add("CompareProductSummarySnippet");
501
			// This method wont use any velocity file, So calling directly
501
			// This method wont use any velocity file, So calling directly