2016-10-07 13:35:58
  var productQuantities : HashMap = basket.getProductQuantities(),
        // get product prices for the accumulated product quantities
        products : Iterator = productQuantities.keySet().iterator(),
        productPrices : HashMap = new HashMap();
 
    while (products.hasNext()) {
        var product : Product = products.next();
        var quantity : Quantity = productQuantities.get(product);
        if (!ProductUtils.productIsSample(product)) {
            productPrices.put(product, product.priceModel.getPrice(quantity));
        } else {
            productPrices.put(product, new Money(0.0, session.getCurrency().getCurrencyCode()));
        }
    }
Invalid Email or Password