Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

category description package missing file?


me23

Recommended Posts

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.

Link to comment
Share on other sites

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'];

}

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...