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) ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Welcome to osCMax Join osCMax Now! Download osCMax Here
Reply

 

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

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 13,401
Thanks: 112
Thanked 472 Times in 414 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

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

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 04:51 AM
Show Sub-categories michael_s New osCommerce Contributions 0 05-07-2008 05:24 PM
Show Sub-categories michael_s New osCommerce Contributions 0 04-28-2008 01:16 AM
Show Sub-categories michael_s New osCommerce Contributions 0 07-16-2007 11:20 AM
Want to show categories AND sub categories in index.php!! calle osCommerce 2.2 Modification Help 0 10-27-2004 11:51 AM


All times are GMT -8. The time now is 10:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax