PDA

View Full Version : Hide Categories & Products V1



michael_s
04-27-2008, 09:31 AM
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.

More... (http://addons.oscommerce.com/info/5907)