osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Show All Categories

This is a discussion on Show All Categories within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Easy to install. !!!!! Backup your catalog/includes/column_left.php first!!!!! !!!!! (or if categorie box is on the right site the column_right.php) ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Welcome to osCMax Join osCMax Now! Download osCMax Here
Reply

 

LinkBack Thread Tools
  #1  
Old 08-28-2008, 02:51 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,466
Thanks: 83
Thanked 356 Times in 334 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Show All Categories

Easy to install.

!!!!! Backup your catalog/includes/column_left.php first!!!!!
!!!!! (or if categorie box is on the right site the column_right.php) !!!!!


!!!!! Installation on your own risk. !!!!!

credits goes to prior developer, who made this great contrib!

Features:
- little image in front of categories, depending on categorie has sub's or not
- show categories and subcategories till defined categorie level
OR show all categories and all sub level
- don't show empty categories or show

This contrib adjustment was made, because I can't have all categories with ALL sublevel opened, it's to much,
but I want to have them opened till Level 1.


Installation:

if you want to show other then Maincategorie + firstsubcategorie

open catalog/includes/boxes/all_categories.php (out of this upload)

Find $stoplevel = 1;

EDIT
if you want to show just the Maincategorie set $stoplevel = 0
if you want to show Maincategorie + subcategorie set $stoplevel = 1
if you want to show Maincategorie + subcategorie + subsubcategorie set $stoplevel = 2
if you want to show Maincategorie + subcategorie + subsubcategorie + subsubsubcategorie set $stoplevel = 3 etc.
if you want to show Maincategories and all sub's unlimited set $stoplevel = -1


Upload catalog/includes/boxes/all_categories.php
Upload catalog/images/pointer_blue.gif
Upload catalog/images/pointer_blue_light.gif


Edit catalog/includes/column_left.php (or if categorie box is on the right site the column_right.php)
FIND
include(DIR_WS_BOXES . 'categories.php');

Replace with
include(DIR_WS_BOXES . 'all_categories.php');

If you don't want the delivered images, replace them with your own in catalog/images.

If you don't like images in front
Edit all_categories.php

FIND $catpic = 1;
and set to 0 if you want to have the OSC Standard "->" behind categories with subs.


IF you want the activated categorie marked with ' >' in front of the catname
Edit all_categories.php
Find
$activatedmark = 0;
and set it to $activatedmark = 1;


If you'll need the removed link to current category then
Edit all_categories.php
find $linkactivated = 0
and set $linkactivated = 1

If you want to show empty categories
Edit all_categories.php
find $showempty = 0
and set to $showempty = 1


That's it.
Have fun.

!!!!Installation on your own risk!!!!

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Show All Categories michael_s New osCommerce Contributions 0 08-27-2008 05:51 AM
Show Sub-categories michael_s New osCommerce Contributions 0 05-07-2008 06:24 PM
Show Sub-categories michael_s New osCommerce Contributions 0 04-28-2008 02:16 AM
Show Sub-categories michael_s New osCommerce Contributions 0 07-16-2007 12:20 PM
Want to show categories AND sub categories in index.php!! calle osCommerce 2.2 Modification Help 0 10-27-2004 12:51 PM


All times are GMT -8. The time now is 02:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax