Subversion Repositories SmartDukaan

Rev

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

Rev 8917 Rev 9155
Line 456... Line 456...
456
        }
456
        }
457
	
457
	
458
		return null;
458
		return null;
459
	}
459
	}
460
 
460
 
461
	public String getCartWidgetSnippet(int totalItems, double totalAmount, long catId, List<Banner> bannerList, Map<String, List<BannerMap>> allBannersMap) {
461
	public String getCartWidgetSnippet(int totalItems, double totalAmount, long catId, List<Banner> bannerList, Map<String, List<BannerMap>> sideBannersMap) {
462
		String htmlString = "";
462
		String htmlString = "";
463
		VelocityContext context = new VelocityContext();
463
		VelocityContext context = new VelocityContext();
464
		String templateFile = "templates/cartwidget.vm";
464
		String templateFile = "templates/cartwidget.vm";
465
		context.put("CAT_ID", catId);
465
		context.put("CAT_ID", catId);
466
		context.put("BANNERS", bannerList);
466
		context.put("BANNERS", bannerList);
467
		context.put("ALL_BANNER_MAP",allBannersMap);
467
		context.put("ALL_BANNER_MAP",sideBannersMap);
468
		htmlString = getHtmlFromVelocity(templateFile, context);
468
		htmlString = getHtmlFromVelocity(templateFile, context);
469
		return htmlString;
469
		return htmlString;
470
	}
470
	}
471
 
471
 
472
}
472
}