Originally Posted by
DannyVarley
It does work. Buried in many pages is alot of zip files that kept having additions, fixes and tangents going in other directions. But it is there which the last one posted by yellow works BUT needs to be patched as it takes away stock ZC functionality. The most obvious being that the subcat categories will be removed. There is a patch zip file a few pages after that has a workaround to include it back in.
A couple of tips for you as I am running it in one of my friends shops:
1) The index_filter folder CAN have template overrides. So just make a custom_template folder in there and put your new index filter file there. This will preserve your stock one in case you find to much to manipulate. I know other posts say there is no overrides but it works.
2) You will want to do a manual merge of those codes as 1.51 has been updated for those core files.
3) In your modules/pages/index/ folder there are 2 files, header.php and mainvars.php. If you wanted to use the custom index filter for only 1 category, you can do that. In BOTH those files. you will see a:
PHP Code:
$typefilter = 'default';
if you wanted the doors category to only have this special index filter then change it for this:
PHP Code:
if ($current_category_id == xx) {
$typefilter = 'subcat';
} else {
$typefilter = 'default';
}
"xx" is what you would put your category id as for the doors. So once you make a merge, name it something else, for my friends store I named it "subcat_filter". What this will do now is when viewing the doors category only, it will run the subcat_filter and list all products in subcategories in the top category. For all other categories, the default_filter will be used.
Bookmarks