Adding a filtering function for product lists on various pages.