replaced getAllProductInfo() function