create an array of the product ids