Subversion Repositories SmartDukaan

Rev

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

Rev 20600 Rev 20605
Line 132... Line 132...
132
		log.info("CartController.create");
132
		log.info("CartController.create");
133
		try {
133
		try {
134
			if(ConfigClient.getClient().get("SALES_FLAG").equals("0")){
134
			if(ConfigClient.getClient().get("SALES_FLAG").equals("0")){
135
				userinfo.setTotalItems(0);
135
				userinfo.setTotalItems(0);
136
				userinfo.setTotalAmount(0);
136
				userinfo.setTotalAmount(0);
137
				return "index";
137
				return "success";
138
			}
138
			}
139
		} catch (ConfigException e1) {
139
		} catch (ConfigException e1) {
140
			userinfo.setTotalItems(0);
140
			userinfo.setTotalItems(0);
141
			userinfo.setTotalAmount(0);
141
			userinfo.setTotalAmount(0);
142
			cartMsg = "This item is currently out of stock";
142
			cartMsg = "This item is currently out of stock";