Sorry, I didn't realise there were two different mods being discussed in that thread. I used the zip file in post #29
By the way here I attach the mod from yellow so you can check it out if you dont have it yet.
Thanks so much Glenn!
Attached Files
File Type: zip all_sub_cats_products.zip (9.3 KB, 387 views)
When I installed it I got a white blank page and could not see any of the site. I figured this was probably because it was made for an older version of Zencart so after a little digging around in the code I found a line of code that was different but similar in the header.php and after I changed this it all seems to be working.
Here is what I changed:
In includes/modules/pages/index/header_php.php
Find this line of code;
Code:
require(DIR_WS_INCLUDES . zen_get_index_filters_directory($typefilter . '_filter.php'));
and replace it with this:
Code:
require(zen_get_index_filters_directory($typefilter . '_filter.php'));
Everything now seems to be working as it should, in 1.5.1 (I don't know much about the difference between the different versions so if you know of any other files that should have been changed please let me know).
Here is how it works, I have a category called Ink, then I have subcategories Red, Blue, Yellow, etc. When I click on Ink now it shows all the products in all the subcategories for ink.
Hopefully this might help someone else.
Thanks for your help