Subversion Repositories SmartDukaan

Rev

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

Rev 6672 Rev 6710
Line 431... Line 431...
431
        }
431
        }
432
	
432
	
433
		return null;
433
		return null;
434
	}
434
	}
435
 
435
 
436
	public String getCartWidgetSnippet(int totalItems, double totalAmount) {
436
	public String getCartWidgetSnippet(int totalItems, double totalAmount, long catId) {
437
		String htmlString = "";
437
		String htmlString = "";
438
		VelocityContext context = new VelocityContext();
438
		VelocityContext context = new VelocityContext();
439
		String templateFile = "templates/cartwidget.vm";
439
		String templateFile = "templates/cartwidget.vm";
-
 
440
		context.put("CAT_ID", catId);
440
		htmlString = getHtmlFromVelocity(templateFile, context);
441
		htmlString = getHtmlFromVelocity(templateFile, context);
441
		return htmlString;
442
		return htmlString;
442
	}
443
	}
443
 
444
 
444
}
445
}