Subversion Repositories SmartDukaan

Rev

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

Rev 11851 Rev 11854
Line 54... Line 54...
54
                }
54
                }
55
                promotionServiceClient = new PromotionClient();
55
                promotionServiceClient = new PromotionClient();
56
                PromotionService.Client promotionClient = promotionServiceClient.getClient();
56
                PromotionService.Client promotionClient = promotionServiceClient.getClient();
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
                addActionMessage(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
            }