Package com.jada.order.cart

Examples of com.jada.order.cart.ShoppingCartCoupon


      form.setShoppingCartItemInfos(vector);
     
      Vector<ShoppingCartCouponBean> couponVector = new Vector<ShoppingCartCouponBean>();
      iterator = shoppingCart.getShoppingCartCoupons().iterator();
      while (iterator.hasNext()) {
        ShoppingCartCoupon shoppingCartCoupon = (ShoppingCartCoupon) iterator.next();
        Coupon coupon = shoppingCartCoupon.getCoupon();
        ShoppingCartCouponBean bean = new ShoppingCartCouponBean();
        bean.setCouponId(Format.getLong(coupon.getCouponId()));
        bean.setCouponCode(coupon.getCouponCode());
        bean.setCouponName(coupon.getCouponLanguage().getCouponName());
        if (!contentBean.getContentSessionBean().isSiteProfileClassDefault()) {
          for (CouponLanguage language : coupon.getCouponLanguages()) {
            if (language.getSiteProfileClass().getSiteProfileClassId().equals(contentBean.getContentSessionKey().getSiteProfileClassId())) {
              if (language.getCouponName() != null) {
                bean.setCouponName(language.getCouponName());
              }
              break;
            }
          }
        }
        bean.setCouponAmount(formatter.formatCurrency(shoppingCartCoupon.getCouponAmount()));
        couponVector.add(bean);
      }
      form.setShoppingCartCouponInfos(couponVector);
     
      ItemTax taxes[] = shoppingCart.getTaxes();
View Full Code Here


    }
   
    Iterator<?> shoppingCartCoupons = shoppingCart.getShoppingCartCoupons().iterator();
    seqNum = 0;
    while (shoppingCartCoupons.hasNext()) {
      ShoppingCartCoupon shoppingCartCoupon = (ShoppingCartCoupon) shoppingCartCoupons.next();
      OrderOtherDetail orderOtherDetail = new OrderOtherDetail();
      Coupon coupon = shoppingCartCoupon.getCoupon();
      orderOtherDetail.setCoupon(coupon);
      orderOtherDetail.setSeqNum(seqNum++);
      orderOtherDetail.setOrderOtherDetailNum(coupon.getCouponCode());
      orderOtherDetail.setOrderOtherDetailDesc(coupon.getCouponLanguage().getCouponName());
      if (!contentSessionKey.isSiteProfileClassDefault()) {
        for (CouponLanguage language : coupon.getCouponLanguages()) {
          if (language.getSiteProfileClass().getSiteProfileClassId().equals(contentSessionKey.getSiteProfileClassId())) {
            if (language.getCouponName() != null) {
              orderOtherDetail.setOrderOtherDetailDesc(language.getCouponName());
            }
            break;
          }
        }
      }
      orderOtherDetail.setOrderOtherDetailAmount(shoppingCartCoupon.getCouponAmount());
      setDirty(coupon);
      orderHeader.getOrderOtherDetails().add(orderOtherDetail);
    }
   
    ItemTax shippingTaxes[] = shoppingCart.getShippingTaxes();
View Full Code Here

TOP

Related Classes of com.jada.order.cart.ShoppingCartCoupon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.