Subversion Repositories SmartDukaan

Rev

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

Rev 11823 Rev 11851
Line 57... Line 57...
57
                String str = "Coupon applied";
57
                String str = "Coupon applied";
58
                Cart cart = promotionClient.applyCoupon(couponCode, cartId);
58
                Cart cart = promotionClient.applyCoupon(couponCode, cartId);
59
                if(cart.getMessage() != null && cart.getMessage().equals("")){
59
                if(cart.getMessage() != null && cart.getMessage().equals("")){
60
                	str = str +  ", " + cart.getMessage();
60
                	str = str +  ", " + cart.getMessage();
61
                }
61
                }
62
                addActionError(str);
62
                addActionMessage(str);
63
                DataLogger.logData(EventType.COUPON_APPLIED, getSessionId(), userinfo.getUserId(), userinfo.getEmail(), couponCode);
63
                DataLogger.logData(EventType.COUPON_APPLIED, getSessionId(), userinfo.getUserId(), userinfo.getEmail(), couponCode);
64
            }
64
            }
65
            else if (action.equals("removecoupon"))    {
65
            else if (action.equals("removecoupon"))    {
66
                userServiceClient = new UserClient();
66
                userServiceClient = new UserClient();
67
                UserContextService.Client userClient = userServiceClient.getClient();
67
                UserContextService.Client userClient = userServiceClient.getClient();