Thanks Steve, this is absolutely great!
I have changed my button in admin to read "Auto Populate" instead of "Add to all categories" - Makes more sense to me
If I want to add an extra button of some sort next to my "Auto Populate" button that controls this line below how would I go about it? I have changed mine to
8 instead of
4 but would like to be able to control this from my admin side
Code:
$pr_main_cat = 4; # products for front page (categoryid 0)
Any help would be greatly appreciated