Package com.jada.order.cart

Examples of com.jada.order.cart.ShoppingCart.recalculate()


        if (paymentEngine != null) {
          paymentEngine.callBack(request, shoppingCart, contentBean);
          if (paymentEngine.isProvideCustomer()) {
          }
        }
        shoppingCart.recalculate(contentBean);
      }
      catch (PaymentException e) {
        logger.error(e);
        paymentEngine.abort();
        shoppingCart.cancelTransaction();
View Full Code Here


          setContentBean(contentBean, request);
          ShoppingCart shoppingCart = ShoppingCart.getSessionInstance(request, false);
          if (shoppingCart != null) {
            synchronized (this) {
              shoppingCart.setSiteCurrency(contentBean.getContentSessionBean().getSiteCurrency());
              shoppingCart.recalculate(contentBean);
            }
          }
           
          String enforceProtocol = mapping.getEnforceProtocol();
          if (Format.isNullOrEmpty(enforceProtocol)) {
View Full Code Here

      ContentBean contentBean = getContentBean(request);
    Site site = contentBean.getContentSessionBean().getSiteDomain().getSite();
      ShoppingCartActionForm form = (ShoppingCartActionForm) actionForm;
      ShoppingCart shoppingCart = ShoppingCart.getSessionInstance(request, true);
      shoppingCart.setEstimateAddress(request, form.getEstimateCountryCode(), form.getEstimateStateCode(), form.getEstimateZipCode(), form.isEstimatePickUp());
      shoppingCart.recalculate(contentBean);
     
      ActionMessages messages = new ActionMessages();
      this.initSearchInfo(form, site.getSiteId(), messages);
    this.initCartInfo(form, site, shoppingCart, request, messages);
      if (!shoppingCart.isShippingValid() && !form.isEstimatePickUp()) {
View Full Code Here

          if (shippingMethodId != null) {
            shippingMethod = ShippingMethodDAO.load(site.getSiteId(), Format.getLong(shippingMethodId));
          }
          shoppingCart.setShippingMethod(shippingMethod);
      }
      shoppingCart.recalculate(contentBean);

      ActionMessages messages = new ActionMessages();
    this.initAddressInfo(form, site, shoppingCart, request, messages);
      this.initCartInfo(form, site, shoppingCart, request, messages);
        saveMessages(request, messages);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.