Added function to get data from the category to the comparison pages.