Examples of CartPojo


Examples of org.hoteia.qalingo.core.pojo.cart.CartPojo

   
    public CartPojo getCart(MarketArea marketArea, Customer customer) throws Exception {
        Cart cart = cartService.getCartByMarketAreaIdAndCustomerId(marketArea.getId(), customer.getId());
        String catalogVirtualCode = marketArea.getCatalog().getCode();
        String catalogMasterCode = marketArea.getCatalog().getCatalogMaster().getCode();
        CartPojo cartPojo = handleCartMapping(cart, catalogVirtualCode, catalogMasterCode);
        return cartPojo;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.cart.CartPojo

                Customer customer = customerService.getCustomerByLoginOrEmail(currentCustomerName);

                if(StringUtils.isNotEmpty(getCartPojoRequest.getMarketAreaCode())){
                    MarketArea marketArea = marketService.getMarketAreaByCode(getCartPojoRequest.getMarketAreaCode());
                    try {
                        CartPojo cartPojo = checkoutPojoService.getCart(marketArea, customer);
                        commonCartPojoResponse.setCart(cartPojo);
                    } catch (Exception e) {
                        // TODO SEND ERREUR
                    }
                }
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.cart.CartPojo

            if(StringUtils.isNotEmpty(quantity)){
                quantityValue = Integer.parseInt(quantity);
            }
            webManagementService.addToCart(requestData, catalogCategoryCode, productSkuCode, quantityValue);
           
            CartPojo cart = checkoutPojoService.handleCartMapping(requestData.getCart(), requestData.getVirtualCatalogCode(), requestData.getMasterCatalogCode());
            for (Iterator<CartItemPojo> iterator = cart.getCartItems().iterator(); iterator.hasNext();) {
                CartItemPojo cartItem = (CartItemPojo) iterator.next();
                if(cartItem.getProductSku().getCode().equals(productSkuCode)){
                    addToCart.setQuantity(cartItem.getQuantity());
                }
            }
           
            if(cart != null && cart.getCartItems() != null){
                if (cart.getCartItems().size() == 1) {
                    addToCart.setCheckoutShoppingCartHeaderLabel(getSpecificMessage(ScopeWebMessage.COMMON, "cart_total_summary_label_one_item", locale));
                } else if (cart.getCartItems().size() > 1) {
                    Object[] cartTotalSummaryLabelParams = { cart.getCartItems().size() };
                    addToCart.setCheckoutShoppingCartHeaderLabel(getSpecificMessage(ScopeWebMessage.COMMON, "cart_total_summary_label_many_items", cartTotalSummaryLabelParams, locale));
                } else {
                    addToCart.setCheckoutShoppingCartHeaderLabel(getSpecificMessage(ScopeWebMessage.COMMON, "cart_total_summary_label_no_item", locale));
                }
               
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.cart.CartPojo

        return checkout;
    }
   
    private void injectCart(final RequestData requestData, final FoCheckoutPojo checkout){
        try {
            CartPojo cart = checkoutPojoService.handleCartMapping(requestData.getCart(), requestData.getVirtualCatalogCode(), requestData.getMasterCatalogCode());
            checkout.setCart(cart);

            MarketArea marketArea = marketService.getMarketAreaByCode(requestData.getMarketArea().getCode(), FetchPlanGraphMarket.specificMarketAreaFetchPlanWithCheckoutData());
           
            final List<DeliveryMethod> deliveryMethods = deliveryMethodService.findDeliveryMethodsByMarketAreaId(marketArea.getId());
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.