added function to cutoff order date for products if linked to such category