uncommented lines that were essential for the products search filter to work