Changed if product.category_id to category_id on line 100