Subversion Repositories SmartDukaan

Rev

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

Rev 3126 Rev 3171
Line 55... Line 55...
55
                UserContextService.Client userClient = userServiceClient.getClient();
55
                UserContextService.Client userClient = userServiceClient.getClient();
56
                userClient.removeCoupon(cartId);
56
                userClient.removeCoupon(cartId);
57
                DataLogger.logData(EventType.COUPON_REMOVED, session.getId(), userinfo.getUserId(), userinfo.getEmail(), couponCode);
57
                DataLogger.logData(EventType.COUPON_REMOVED, session.getId(), userinfo.getUserId(), userinfo.getEmail(), couponCode);
58
            }
58
            }
59
        } catch (PromotionException e) {
59
        } catch (PromotionException e) {
60
            log.error("Unable to apply or remove coupon", e);
60
            log.info("Invalid coupon: " + e.getMessage());
61
            addActionError(e.getMessage());
61
            addActionError(e.getMessage());
62
        } catch (Exception e) {
62
        } catch (Exception e) {
63
            log.error("Unable to apply or remove coupon", e);
63
            log.error("Unable to apply or remove coupon", e);
64
        }
64
        }
65
        return "redirect";
65
        return "redirect";