You are here

productListIds

Used by the following Containers: 
Variable Type: 
Custom Javascript
Grabs the ProductList object and makes a list of productId :)
	// Creates a list of ProductIDs in the productList Object
// such as ['256', '15987', '9587']
function() {
  var products = {{productList}};
  var productListNbDistinctProducts = {{productListLength}};
  var productListIds = []; 

  for ( var i = 0; i < productListNbDistinctProducts; i++ ) {
    productListIds.push(productList[i].productId);
  }
  return productListIds;
}