Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Want to show categories AND sub categories


Recommended Posts

Here's a hack you can try. I have not thoroughly tested this so you should test everything after installing. In includes/boxes/categories.php find this line

 if (tep_not_null($cPath)) {

and right before it place this code

  if (! tep_not_null($cPath)) { 
  $cPath_array = tep_parse_category_path($cPath);
   $cPath = implode('_', $cPath_array);
   $current_category_id = $cPath_array[(sizeof($cPath_array)-1)];

I'm not sure what effect, if any, changing cPath like that will have. It might be worth it to reset it on the way out of the module.



Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...