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();