Subversion Repositories SmartDukaan

Rev

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

Rev 11898 Rev 12616
Line 126... Line 126...
126
		if(actionErrors != null && !actionErrors.isEmpty()){
126
		if(actionErrors != null && !actionErrors.isEmpty()){
127
			for (String str : actionErrors) {
127
			for (String str : actionErrors) {
128
			    errorMsg += "<BR/>" + str;
128
			    errorMsg += "<BR/>" + str;
129
			}
129
			}
130
		}
130
		}
131
        DataLogger.logData(EventType.SHIPPINIG_ACCESS, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
131
//        DataLogger.logData(EventType.SHIPPINIG_ACCESS, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
132
                Long.toString(cartId), itemIdString);
132
//                Long.toString(cartId), itemIdString);
133
		
133
		
134
    	return "index";
134
    	return "index";
135
	 }
135
	 }
136
 
136
 
137
	// POST /entity
137
	// POST /entity
Line 197... Line 197...
197
                                userClient.storeInsuranceSpecificDetails(addressId, dob, guardianName);
197
                                userClient.storeInsuranceSpecificDetails(addressId, dob, guardianName);
198
                            }
198
                            }
199
						} catch(Exception e) {
199
						} catch(Exception e) {
200
						    log.error("Error while adding insurance specific details for address : " + addressId + ", DOB : " + dob + " GuardianName : " + guardianName, e);
200
						    log.error("Error while adding insurance specific details for address : " + addressId + ", DOB : " + dob + " GuardianName : " + guardianName, e);
201
						}
201
						}
202
                        DataLogger.logData(EventType.SHIPPINIG_ADD_ADDRESS, getSessionId(), userinfo.getUserId(), userinfo.getEmail(), address.getName(),
202
//                        DataLogger.logData(EventType.SHIPPINIG_ADD_ADDRESS, getSessionId(), userinfo.getUserId(), userinfo.getEmail(), address.getName(),
203
                                        address.getCity(), address.getPhone(), address.getPin());
203
//                                        address.getCity(), address.getPhone(), address.getPin());
204
					}
204
					}
205
					return "redirect";				
205
					return "redirect";				
206
				}
206
				}
207
				
207
				
208
				if(action.equals("change"))	{
208
				if(action.equals("change"))	{
Line 212... Line 212...
212
					} else {
212
					} else {
213
					    userClient.addAddressToCart(userinfo.getCartId(), addressId);
213
					    userClient.addAddressToCart(userinfo.getCartId(), addressId);
214
					}
214
					}
215
					
215
					
216
					errorMsg = userClient.validateCart(userinfo.getCartId(), sourceId).get(0);
216
					errorMsg = userClient.validateCart(userinfo.getCartId(), sourceId).get(0);
217
                    DataLogger.logData(EventType.SHIPPINIG_ADD_CHANGE, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
217
//                    DataLogger.logData(EventType.SHIPPINIG_ADD_CHANGE, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
218
                            Long.toString(userinfo.getCartId()), Long.toString(addressId));
218
//                            Long.toString(userinfo.getCartId()), Long.toString(addressId));
219
					return "index";
219
					return "index";
220
				}
220
				}
221
			}
221
			}
222
		} catch (Exception e) {
222
		} catch (Exception e) {
223
		    log.error("Error while adding address to the cart", e);
223
		    log.error("Error while adding address to the cart", e);