Dunno. I'm not a PHP guy.
That was just a suggestion of how you could put the switch in the tpl. That way the catalog would generate a category page that redirected to the product page. Hiding all of the code in PHP is not giving the catalog a chance to generate the category page.
You gotta bug someone smart to help you implement this. It's outta my field.
|