Subversion Repositories SmartDukaan

Rev

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

Rev 11823 Rev 11861
Line 214... Line 214...
214
                promotionServiceClient = new PromotionClient();
214
                promotionServiceClient = new PromotionClient();
215
                PromotionService.Client promotionClient = promotionServiceClient.getClient();
215
                PromotionService.Client promotionClient = promotionServiceClient.getClient();
216
                
216
                
217
                Cart cart = promotionClient.applyCoupon(couponCode, id);
217
                Cart cart = promotionClient.applyCoupon(couponCode, id);
218
            	errorMsg = "Coupon successfully applied";
218
            	errorMsg = "Coupon successfully applied";
219
            	if(cart.getMessage() != null && cart.getMessage().equals("")){
219
            	if(cart.getMessage() != null && !cart.getMessage().equals("")){
220
                	errorMsg = errorMsg +  ", " + cart.getMessage();
220
                	errorMsg = errorMsg +  ", " + cart.getMessage();
221
                }
221
                }
222
            }
222
            }
223
            else if (action.equals("removecoupon"))    {
223
            else if (action.equals("removecoupon"))    {
224
                getClient().removeCoupon(id);
224
                getClient().removeCoupon(id);