It seems that this needs a slight code change to work correctly
(at least with my store).
I wanted the functionality to change templates for just one category,
so I could refine the template for category and product display.
So after copying 'eccentric's code from the beginning of this post,
I made a revision that is working correctly for me now.
On line 37 of: includes/init_includes/overrides/init_templates.php make necessary adjustments...
if($_GET['cPath']) {
switch($_GET['cPath']) {
case $template_dir = "29"; // directory of your custom cPath template (includes/templates/29)
break;
case $template_dir = "29_30"; // directory your custom cPath template (includes/templates/29)
break;
case $template_dir = "29_31"; // directory your custom cPath template (includes/templates/29)
break;
case $template_dir = "29_32"; // directory your custom cPath template (includes/templates/29)
break;
case $template_dir = "29_33"; // directory your custom cPath template (includes/templates/29)
default: // If none of the above
$template_dir = "future_zen"; // directory name of custom template (includes/templates/custom_template)
break;
}
}
So when a user goes to cPath 29, the program automatically loads the folder in the directory I created under includes/templates/29
This directory should include all the files in my custom template (which is 'future_zen' in my case.
I only copied the important template files that would be used, and didn't bother with the rest i.e. everything in the 'common' folder, everything in the 'images' folder etc.
Next I ran into some error where the templates would be looking for a file in my custom folder on other parts of the site. The only thing is it doesn't automatically
look in you custom folder, so you need to take these and copy them over
to the regular directories. For example I use a drop down menu
and it had a file in
includes/languages/english/extra_definitions/CUSTOM_TEMPLATE/ ,
so I copied it to
includes/languages/english/extra_definitions/
and that got it working.