I want to get the categories and related products in collection using parent category ID. So that i can show the grid like
sub category 1
sub category 1's product 1
sub category 1's product 2
sub category 1's product 3
sub category 2
sub category 2's product 1
sub category 2's product 2
sub category 2's product 3
and so on. I can get the products in foreach but I need to add pagination also.