Contributions
Browse by Categories
Browse by Categories v1.0 for 2.2-MS1.
Displays a content box in the main page (default.php) with top and sub-level categories of current category level. Administrators can select to disable this content box from displaying or enabling it as a text link type or an image link type. Administrators can also select number of links to display per row and if sub-categories are to be displayed on the right side of each category.
This contribution adds a new configuration group, with ID 101, to the database. This new group is associated with 4 new configuration entries: DISPLAY_BROWSE_CATEGORIES to enable/disable displaying the content box, BROWSE_CATEGORIES_TYPE to set link type, DISPLAY_BROWSE_SUB_CATEGORIES to enable/disable displaying the sub-categories of a category and MAX_BROWSE_CATEGORIES_PER_ROW that must be set to the number of maximum categories to display in a row. Check the sql file for the default configuration values of each entry. If you want to see a demonstration, check this demo online shop, running at http://docommerce.dowedo-it.com. Bare in mind that the text is in Portuguese.
Expand All / Collapse All
Attached file are the instructions to cache this module in the default oscommerce cache.
V 2.7 Full Package - Corrected install
Works with MS2, RC1, RC2, RC2a.
Cleaned package, removed old files, updated install instructions.
Browse by categories 2.7 Full package with screenshots
Includes bugfix by Valerka
Compatible with RC2a
find
$cPath_cur = tep_get_path($current_categories['categories_id']);
replace
$cPath_cur = 'cPath=' . $current_categories['categories_id'];
Browse by Categories v2.6 closes these Features Requests:
* Parent Category Link in Product Listing - Aims to present a more practical navigation to visitors, by providing a link to the parent category of the current category product listing. Kudos: belray.
* Apply CSS display:inline or display:block to Sub-Category Links - Aims to allow better control over the way the sub-category links are displayed. At present, when positioned below the category icon (image/text), the sub-category links follow one another, instead of occupying a new line. Kudos: dasoccerbomb.
* New Layout - Set BRWCAT_ICON_MODE = 'text', BRWCAT_SUBCAT_MODE ='bottom' and BRWCAT_ICONS_PER_ROW = 1. It requires new configuration settings: to control the number of sub-category icons per row and to enable/disable the content box title. Kudos: akasharkbow.
* Fix version in code comments - Clean out outdated comments with older versions from index.php, default.php and other files in the contribution. Kudos: Ethan1701.
This new release replaces all former database configuration variables with 6 new ones, which allow for more layouts and help optimize the code.
For more information, please review the post on the official osCommerce Forums, at http://forums.oscommerce.com/index.php?showtopic=65657&view=findpost&p=307907
azer, thank you for your translation and help in tracking bugs and testing this release.
This new release fixes some bugs pin-pointed by "azer" and adds new features requested by "azer" and "Spaceboy".
For more information, please review the post on the official osCommerce Forums, at http://forums.oscommerce.com/index.php?showtopic=65657&view=findpost&p=299839
azer and Spaceboy, thank you for your efforts, comments and help.
Just added the display of product count numbers for each category if enabled in Adminstration (cf. category box)
Modification of browse_categories.php
Just one small fix, pin-pointed by tuca, that removes the original displaying of sub category icons.
This release is the same as previous release, except that default.php (MS1) or index.php (MS2) now have the necessary code commented out.
This release adds a minor database setting, which enables the sub-category links to be positioned either on the right side of the main category or below it. It adds to configuration group ID 101 a new entry: POSITION_SUB_CATEGORIES. This entry can be set to "right" or "bottom".
Other changes were splitting the table cell in odd and even columns or rows, depending if the POSITION_SUB_CATEGORIES is set to "right" or "bottom".
ZIP file with screenshots, in JPEG format, for Browse by Categories. The images with filename starting with admin show how the administration presents the options to control the content of Browse by Categories. The content, depending on the options selected, can be viewed on the images with filenames starting with catalog.
For more information, read the topic in the official osCommerce forum, at http://forums.oscommerce.com/index.php?showtopic=65657
This new release is for osCommerce 2.2 MileStone 2. The changes are:
1. replace default.php with index.php.
2. replace application_top.php with filenames.php.
For any questions, comments or doubts, please visit the official forum, at http://forums.oscommerce.com/index.php?showtopic=65657
Browse by Categories v1.0 for 2.2-MS1.
Displays a content box in the main page (default.php) with top and sub-level categories of current category level. Administrators can select to disable this content box from displaying or enabling it as a text link type or an image link type. Administrators can also select number of links to display per row and if sub-categories are to be displayed on the right side of each category.
This contribution adds a new configuration group, with ID 101, to the database. This new group is associated with 4 new configuration entries: DISPLAY_BROWSE_CATEGORIES to enable/disable displaying the content box, BROWSE_CATEGORIES_TYPE to set link type, DISPLAY_BROWSE_SUB_CATEGORIES to enable/disable displaying the sub-categories of a category and MAX_BROWSE_CATEGORIES_PER_ROW that must be set to the number of maximum categories to display in a row. Check the sql file for the default configuration values of each entry. If you want to see a demonstration, check this demo online shop, running at http://docommerce.dowedo-it.com. Bare in mind that the text is in Portuguese.
Note: Contributions are used at own risk.