Community Add-Ons

Maintainers: wdepot
Add file to this package
Top » Features

Hide Categories with category cache
for osCommerce Online Merchant v2.3

This is an osCommerce 2.3 version of the Activate or Inactivate Categories contribution. The main addition is the creation of a category cache file that reduces the need to read the database when obtaining category information which can speed web site display, particularly when displaying product counts on sites with a large number of products in deeply nested categories. This cache file is automatically updated as needed.

Features:
* Hide or show any category as desired. Subcategories of hidden categories are automatically hidden.
* Choose whether or not to completely hide products that exist only in hidden categories.
* Category cache file reduces the need to read from the database, thus speeding web site display.
* Category cache file is automatically rebuilt any time category information is changed.
* Category cache file is automatically rebuilt when showing product counts and a product is added, deleted or undergoes a status change.

Legend:  Download   Report

Expand All / Collapse All

Hide Categories with category cache wdepot 2 Apr 2015  

I've revised the two function files to correctly write the cache file. As originally written the list of hidden categories wasn't being correctly written to the cache file. Also I discovered that the addslashes function would cause problems if a category name happened to contain a double quote which would then be displayed as " when loaded from the cache. I've replaced the addslashes with a str_replace that escapes only backslashes and single quotes.

Complete install is attached but only the includes/functions/categories.php and admin/includes/functions/categories.php files have been changed.

Hide Categories with category cache wdepot 12 Mar 2015  
Hide Categories with category cache geoffreywalton 20 Nov 2014  
Hide Categories with category cache wdepot 11 Oct 2014  
Hide Categories with category cache wdepot 26 Apr 2014  
Hide Categories with category cache support thread veego 28 Oct 2013  
Hide Categories with category cache wdepot 3 Oct 2013