You are here

productListSumValue

Used by the following Containers: 
Variable Type: 
Custom Javascript
Calculates the sum of added productQuantity and ProductUnitPrice
	function() {
   var productList = {{productList}};
   var productListLength = {{productListLength}};
   var productListSumValue = 0;
   var i;
   for ( i = 0; i < productListLength; i++ ) {
     productListSumValue = productListSumValue + (productList[i].productUnitPrice * productList[i].productQuantity);
   }
   return productListSumValue;
}