Package org.simplecart.shopcart

Examples of org.simplecart.shopcart.ShopcartItem


                (HttpServletRequest) pageContext.getRequest();
        StringBuffer url = new StringBuffer(request.getContextPath());
        url.append(config.getPrefix());
        url.append(page);
        url.append(".do");
        ShopcartItem item = null;
        try {
            item = (ShopcartItem) pageContext.findAttribute(name);
        } catch (ClassCastException e) {
            item = null;
        }
View Full Code Here


        InternetSalesOrder newOrder = new InternetSalesOrder (customer,orderAddress);
       
        // create the line items and add to order
        Shopcart shopcart = (Shopcart) session.getAttribute(Constants.SHOPCART);
        Iterator cartItems = shopcart.getItems().iterator();
        ShopcartItem currentItem;
        SalesOrderLineItem currentLineItem;
        ProductOption currentOption;

        // get a DAO for the new Stake
        InternetProductOptionDAO optionDAO = new InternetProductOptionDAO();
       
        while (cartItems.hasNext()) {
            currentItem = (ShopcartItem) cartItems.next();
            currentOption = optionDAO.findById(currentItem.getOptionId(),false);
            currentLineItem =
              new SalesOrderLineItem(
                    currentItem.getAmount(),
                    currentItem.getPrice(),
                    currentItem.getComment(),
                    currentOption);
            newOrder.getLineItems().add(currentLineItem);
        }
       
        // create the payment and attache to the order
View Full Code Here

TOP

Related Classes of org.simplecart.shopcart.ShopcartItem

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.