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) ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| !!!!! 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
|
| Thread Tools | |
| |
| ||||
| 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 |