Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi All

 

I just applied theCategory Descriptions contribution for osCommerce 2.2 and I now I get Fatal error when I go to Categories > Categories / Products > Edit

 

The error:

 

Fatal error: Call to undefined function: tep_get_category_heading_title() in /usr/local/etc/httpd/htdocs/dobiesoft/catalog/admin/categories.php on line 441

 

I cant seem to figure it out here is the categories.php

 

Thanks In Advance!

Blnukem <_<

Posted

Hi,

 

Did you define these?

 

6. LANGUAGE FILES CHANGES

 

Locate your default language under admin/includes/languages and edit the file

'categories.php'. Add two lines after the line that defines

define('TEXT_DISPLAY_NUMBER_OF_ZONES', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> zones)');

 

Add these lines:

define('TEXT_EDIT_CATEGORIES_HEADING_TITLE', 'Category Heading Title:');

define('TEXT_EDIT_CATEGORIES_DESCRIPTION', 'Category Description:');

Posted (edited)

The error states that it is a call to an undefined function.

 

Check catalog/includes/functions/general.php to see if the function tep_get_category_heading_title exists.

Edited by 241

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

define('TEXT_EDIT_CATEGORIES_HEADING_TITLE', 'Category Heading Title:');

define('TEXT_EDIT_CATEGORIES_DESCRIPTION', 'Category Description:');

 

Does exsist in the 'categories.php'.

 

The function tep_get_category_heading_title DOES NOT exist in catalog/includes/functions/general.php

The install all makes no reference to tep_get_category_heading_title in catalog/includes/functions/general.php

Posted

I am also thinking of installing this contribution and saw some (later) updates are not complete. In the same contribution, look for "Category Descriptions for the BTS" by Paul Mathot and it seems to have all the files.

 

I will try installing from that and let you know, if I am successful.

 

Rgds

...Manjeet

Posted

I installed mine by following the ReadMe posted on: 29 Jun 2004 - Update for MS2 and using the files on Categories Description MS2 1.5.

I had no problems following the installation but now I can't insert new categories or sub categories on my site.

When I click the New Category button, my site displays the form for a new category. But when you click the Preview button and then the Insert button,

the new category you just typed is not listed.

I also checked the database and found no new record for the category.

 

It seems like this mod is missing a few.

 

Does anyone have this mod workin on their site right?

Posted

I finally got it working ! I used the version 1.5 which has all files, but I used the readme file of v1.6 which has instructions to modify index.php.

  • 2 weeks later...
Posted

I have installed Category Descriptions 1.5 but I am getting this nasty error:

 

1054 - Unknown column 'cd.categories_heading_title' in 'field list'

 

select cd.categories_name, cd.categories_heading_title, cd.categories_description, c.categories_image from categories c, categories_description cd where c.categories_id = '21' and cd.categories_id = '21' and cd.language_id = '1'

 

[TEP STOP]

 

Also, when I connect to the admin tool I am not seeing the "Allow Category Descriptions." as discussed in teh Readme. Anyone have a clue how to solve this?

 

Joe

  • 4 weeks later...
Posted

I had the orginal error and resolved it with this version of catalog_descriptions.php.

 

<?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 = '" . $category_id . "' and language_id = '" . $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 = '" . $category_id . "' and language_id = '" . $language_id . "'");

$category = tep_db_fetch_array($category_query);

return $category['categories_description'];

}

 

?>

 

 

Remember to kill all space after the final ?> or else You'll get errors from that.

 

Good luck & god bless! Thank you John Doe!!!!!!!!!!!!!!

  • 2 weeks later...
Posted

Hi all,

I used the

Category Descriptions contribution for osCommerce 2.2

 

Author: Brian Lowe <[email protected]>

Date: September 2002 (version 1.1)

July 2002 (version 1.0)

 

Contribution Version: 1.1

osCommerce version:  2.2

 

==============================================================================

Editor: Lord Illicious <[email protected]>

Date: July 2003 (version 1.1)

July 2003 (version 1.5 MS2)

 

Contribution Version: 1.5 MS2

osCommerce version:  2.2 Milestone 2

 

I can see and add a product description in the admin but the descriptions are not showing in the catalog.

 

Any suggestions on how to fix this?

Thanks.

Posted

I have repackaged this contrib, including the php scripting mod and my own mod in order to be able to use WYSIWYG for the category description!

 

It's a complete package with slightly reformatted, more user-friendly instructions.

 

I've presented both the WYSIWYG mod and the php scripting mod as OPTIONAL, and included instructions for installation with or without one of these mods.

 

This is a NON-BTS version.

 

Download the latest version, it's all there!

 

Get the contrib here

Posted

Reg-DCP,

Are you talking about product descriptions, or category descriptions?

You may want to start over and re-install.

 

The categories.php file is full of code and very sensitive and you have to be sooo careful.

 

Also, make sure you altered all the files as instructed in the readme, including index.php

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.

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