reset per_page/page  in products listing to avoid bad values when we change template