me23 Posted January 6, 2007 Share Posted January 6, 2007 Hello, I've downloaded the latest package for Category Descriptions (http://www.oscommerce.com/community/contributions,4294) and it seems to be missing a file. In the readme it says: New File: admin/includes/functions/categories_description.php However, this file is missing from the zip and does not exist in any of the previous contrib versions either - does anyone know where to find it? Thanks in advance for the help. Quote Link to comment Share on other sites More sharing options...
insomniac2 Posted January 7, 2007 Share Posted January 7, 2007 You should be able to get it from one of the previous releases. Heres the code anyway: <?php // Code: categories_description // Author: Brian Lowe <[email protected]> // Date: June 2002 // // Contains code snippets for the categories_description contribution to // osCommerce. // Code: categories_description MS2 1.5 // Editor: Lord Illicious <[email protected]> // Date: July 2003 // // Get a category heading_title or description // These should probably be in admin/includes/functions/general.php, but since // this is a contribution and not part of the base code, they are here instead function tep_get_category_heading_title($category_id, $language_id) { $category_query = tep_db_query("select categories_heading_title from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$category_id . "' and language_id = '" . (int)$language_id . "'"); $category = tep_db_fetch_array($category_query); return $category['categories_heading_title']; } function tep_get_category_description($category_id, $language_id) { $category_query = tep_db_query("select categories_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$category_id . "' and language_id = '" . (int)$language_id . "'"); $category = tep_db_fetch_array($category_query); return $category['categories_description']; } ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.