Added custom template filter for invalid orders