Subversion Repositories SmartDukaan

Rev

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

Rev 3231 Rev 3717
Line 514... Line 514...
514
		params.put("PRODUCT_NAME", productName);
514
		params.put("PRODUCT_NAME", productName);
515
		params.put("CATEGORY_ID", ((int)categoryId)+"");
515
		params.put("CATEGORY_ID", ((int)categoryId)+"");
516
		params.put("CATEGORY_NAME", categoryName);
516
		params.put("CATEGORY_NAME", categoryName);
517
		params.put("CATEGORY_URL", categoryName.replaceAll(" ", "-").toLowerCase() + "/" + categoryId);
517
		params.put("CATEGORY_URL", categoryName.replaceAll(" ", "-").toLowerCase() + "/" + categoryId);
518
		params.put("PRODUCT_URL", URLEncoder.encode("http://www.", "UTF-8") + "${domain}"  + URLEncoder.encode(EntityUtils.getEntityURL(expEntity), "UTF-8"));
518
		params.put("PRODUCT_URL", URLEncoder.encode("http://www.", "UTF-8") + "${domain}"  + URLEncoder.encode(EntityUtils.getEntityURL(expEntity), "UTF-8"));
519
		if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY){
519
		if(expEntity.getCategory().getParentCategory().getID() != Utils.MOBILE_ACCESSORIES_CATEGORY && expEntity.getCategory().getID() != Utils.LAPTOPS_CATEGORY){
520
			params.put("IS_MOBILE", "TRUE" );	
520
			params.put("IS_MOBILE", "TRUE" );	
521
		}else{
521
		}else{
522
			params.put("IS_MOBILE", "FALSE" );
522
			params.put("IS_MOBILE", "FALSE" );
523
		}
523
		}
524
		params.put("CATALOG_ID", expEntity.getID()+"");
524
		params.put("CATALOG_ID", expEntity.getID()+"");