I wanted to add this mod to my Document Categories box but don't have the necessary coding skills. After a couple of hours of trying to figure out how to re-code, I finally had an epiphany - instead of changing the coding, I would duplicate the mod and just restrict it to my document categories using the fix below which was so kindly posted by vandiermen.
vandiermen:
someone helped me and fixed it; they said they fixed it by doing this
in categories_ul_generator.php between line 45 and 47 i add this:
and c.categories_id NOT IN(33)
it says select all items with the category id from the categories table
except id 33
in the future, to take out more categories (any, not just document, add another number after a comma, like this
and c.categories_id NOT IN(33, 34)
To duplicate this mod for your Document Categories Sidebox, open up each file in your editor and:
- Rename all three files.
change categories_ul_generator.php to document_categories_ul_generator.php
change categories_css.php to document_categories_css.php
change tpl_categories_css.php to tpl_document_categories_css.php
- Within the files, change all instances of categories_ul_generator.php to document_categories_ul generator.php
change all instances of categories_css.php to document_categories_css.php
and
change all instances of tpl_categories_css.php to tpl_document_categories_css.php
- Use the fix posted by vandiermen. Go into document_categories_ul_generator.php and add
and c.categories_id NOT IN(33)
after this line (I added my exceptions on line 50 in the 1.3.8a version of this mod)
where c.categories_id = cd.categories_id
If you want to exclude more than one category, use
and c.categories_id NOT IN(33,1,2)
etc.
Load everything back up to your server and in your admin => Tools => Layout Boxes Controller turn on your document_categories_css.php box and make sure that your document_categories.php box is turned off.
I wanted my document categories box to be identical to my categories box so I didn't make a different stylesheet but if you want to style the document categories box separately from the categories box, I've seen fixes in this thread that may help.
BTW, I'm running Zen Cart v.1.3.9f and css fly out menu v.1.3.8a.
If you want a visual, www. theburningbutterfly.com/store. (You'll need to remove the space from the web address.)