Community Add-Ons

Maintainers: spooks
Add file to this package
Top » Credit Modules

Hide Categories & Products V1
for osCommerce Online Merchant v2.2

Hide Categories & Products

For OScommerce2.2 rc1

I searched for a solution for this, solutions I found were either over complex, or poorly done, so this is my solution.

I believe in keeping things as simple as possible & not re-inventing the wheel.
OSC already has functions to hide any product, so I use that for products.
This adds a new entry in the category table (categories_status) so all thats needed on the client side is to add a filter to sql queries ( and categories_status = 1 ).
This does not allow for per-customer filtering, although I reckon it wouldent be too difficult to add.

Most changes occur in admin/categories.php. These allow you to change the status of any category & the status of all products within a category.

My site is heavily modified, so you may need to alter this contribution to fit your site.

Legend:  Download   Report
Expand All / Collapse All
Installation Update stanec 7 May 2008  

To correct change categories On and Off change as below.

In categories.php find:

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified

Add after:

, c.categories_status

Do that for the two queries in this file.

Hide Categories & Products V1 spooks 27 Apr 2008