Examples of Cart


Examples of org.hoteia.qalingo.core.domain.Cart

        modelAndView.addObject(ModelConstants.SEARCH_FORM, formFactory.buildSearchForm(requestData));

        loadRecentProducts(request, requestData, model, new FetchPlan(categoryVirtualFetchPlans), new FetchPlan(productMarketingFetchPlans), new FetchPlan(productSkuFetchPlans));

        final Cart currentCart = requestData.getCart();
        final CartViewBean cartViewBean = frontofficeViewBeanFactory.buildViewBeanCart(requestUtil.getRequestData(request), currentCart);
        modelAndView.addObject(ModelConstants.CART_VIEW_BEAN, cartViewBean);

        return modelAndView;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Cart

   
    @Autowired
    private Mapper dozerBeanMapper;
   
    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.domain.Cart

   
  @RequestMapping(FoUrls.CATEGORY_AS_LINE_URL)
  public ModelAndView productLine(final HttpServletRequest request, final Model model, @PathVariable(RequestConstants.URL_PATTERN_CATEGORY_CODE) final String categoryCode) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), FoUrls.CATEGORY_AS_LINE.getVelocityPage());
        final RequestData requestData = requestUtil.getRequestData(request);
        final Cart currentCart = requestData.getCart();
       
    final CatalogCategoryVirtual catalogCategory = catalogCategoryService.getVirtualCatalogCategoryByCode(categoryCode, requestData.getVirtualCatalogCode(), requestData.getMasterCatalogCode(), new FetchPlan(categoryVirtualFetchPlans));
   
    if(catalogCategory != null){
        final CatalogCategoryViewBean catalogCategoryViewBean = frontofficeViewBeanFactory.buildViewBeanVirtualCatalogCategory(requestUtil.getRequestData(request), catalogCategory,
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Cart

      return displaySearch(request, model);
    }
   
    loadRecentProducts(request, requestData, model, new FetchPlan(categoryVirtualFetchPlans), new FetchPlan(productMarketingFetchPlans), new FetchPlan(productSkuFetchPlans));
       
        final Cart currentCart = requestData.getCart();
        final CartViewBean cartViewBean = frontofficeViewBeanFactory.buildViewBeanCart(requestUtil.getRequestData(request), currentCart);
        modelAndView.addObject(ModelConstants.CART_VIEW_BEAN, cartViewBean);
   
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, FoUrls.STORE_SEARCH.getKey());
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Cart

    @Consumes(MediaType.APPLICATION_JSON)
    @Produces(MediaType.APPLICATION_JSON)
    public AddToCartPojoResponse addProductSkuToCart(AddToCartPojoRequest addToCartPojoRequest) throws Exception {
        AddToCartPojoResponse addToCartPojoResponse = new AddToCartPojoResponse();
       
        Cart cart;
        if(StringUtils.isNotEmpty(addToCartPojoRequest.getCartId())){
            cart = cartService.getCartById(addToCartPojoRequest.getCartId());
            String catalogCategoryCode = addToCartPojoRequest.getCatalogCategoryCode();
            String productSkuCode = addToCartPojoRequest.getProductSkuCode();
            int quantity = addToCartPojoRequest.getQuantity();
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Cart

    @Produces(MediaType.APPLICATION_JSON)
    public CommonCartPojoResponse updateProductSkuQuantityToCart(UpdateItemQuantityCartPojoRequest updateItemQuantityCartPojoRequest) throws Exception {
        CommonCartPojoResponse commonCartPojoResponse = new CommonCartPojoResponse();
       
        if(StringUtils.isNotEmpty(updateItemQuantityCartPojoRequest.getCartId())){
            Cart cart = cartService.getCartById(updateItemQuantityCartPojoRequest.getCartId());
            String productSkuCode = updateItemQuantityCartPojoRequest.getProductSkuCode();
            int quantity = updateItemQuantityCartPojoRequest.getQuantity();
            checkoutPojoService.updateCartItem(cart, productSkuCode, quantity);
                   
        } else {
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Cart

    @Produces(MediaType.APPLICATION_JSON)
    public CommonCartPojoResponse deleteProductSkuQuantityToCart(UpdateItemQuantityCartPojoRequest updateItemQuantityCartPojoRequest) throws Exception {
        CommonCartPojoResponse commonCartPojoResponse = new CommonCartPojoResponse();
       
        if(StringUtils.isNotEmpty(updateItemQuantityCartPojoRequest.getCartId())){
            Cart cart = cartService.getCartById(updateItemQuantityCartPojoRequest.getCartId());
            String productSkuCode = updateItemQuantityCartPojoRequest.getProductSkuCode();
            checkoutPojoService.deleteCartItem(cart, productSkuCode);
                   
        } else {
            // TODO SEND ERREUR
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Cart

    @Produces(MediaType.APPLICATION_JSON)
    public CommonCartPojoResponse applyPromoCode(PromoCodeCartPojoRequest promoCodeCartPojoRequest) throws Exception {
        CommonCartPojoResponse commonCartPojoResponse = new CommonCartPojoResponse();
       
        if (StringUtils.isNotEmpty(promoCodeCartPojoRequest.getCartId())) {
            Cart cart = cartService.getCartById(promoCodeCartPojoRequest.getCartId());
            String promoCode = promoCodeCartPojoRequest.getPromoCode();

            // TODO MANAGE promoCode

        } else {
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Cart

           
            if(StringUtils.isNotEmpty(currentCustomerName)){
                Customer customer = customerService.getCustomerByLoginOrEmail(currentCustomerName);

                if(StringUtils.isNotEmpty(addressCartPojoRequest.getCartId())){
                    Cart cart = cartService.getCartById(addressCartPojoRequest.getCartId());
                    String customerAddressId = addressCartPojoRequest.getCustomerAddressId();
                    checkoutPojoService.setShippingAddress(cart, customer, customerAddressId);
                   
                } else {
                    // TODO SEND ERREUR
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Cart

           
            if(StringUtils.isNotEmpty(currentCustomerName)){
                Customer customer = customerService.getCustomerByLoginOrEmail(currentCustomerName);

                if(StringUtils.isNotEmpty(addressCartPojoRequest.getCartId())){
                    Cart cart = cartService.getCartById(addressCartPojoRequest.getCartId());
                    String customerAddressId = addressCartPojoRequest.getCustomerAddressId();
                    checkoutPojoService.setBillingAddress(cart, customer, customerAddressId);
                   
                } else {
                    // TODO SEND ERREUR
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.