added getProductIds() function