Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_get_categories_name Error in Quantity Controller


Recommended Posts

Posted

I installed the Quantity Controller and finished configuring everything (or so I thought) and when I go to the Admin to add categories I get this error after adding them:

 

Fatal error: Call to undefined function: tep_get_categories_name() in /home/www/synapse-se/commerce/admin/categories.php on line 1266

 

The line of code I "think" it's talking about is the following:

 

$contents[] = array('text' => TEXT_CATEGORIES . ' ' . tep_get_categories_name($cPath) . ' ' . tep_get_categories_name($cID) . '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($cInfo->date_added));

 

Anyone have any ideas?

 

Thanks!

Posted

Sounds like you did not add the include statement to the /admin/includes/application_top.php file. :shock:

 

In the ReadMe.txt file:

CHANGES TO /admin/includes/application_top.php



Add to the bottom of the file just before the ?> :



// BOF: WebMakers.com Added: Functions Library

   include(DIR_WS_FUNCTIONS . 'webmakers_added_functions.php');

// EOF: WebMakers.com Added: Functions Library





This will add additional functions and additional filename definitions

 

That should fix the problem. :D

Posted

That worked so now I can go in and add products but down at the discount pricing option I get a table that looks somewhat odd with these titles:

 

TEXT_DISCOUNTS_TITLE TEXT_DISCOUNTS_TITLE

TEXT_DISCOUNTS_BREAKS 1 2 3 4

TEXT_DISCOUNTS_QTY

TEXT_DISCOUNTS_PRICE

 

Any ideas from here?

 

Thanks Again!

Posted

Now go add in the language files ... :shock:

 

You might read through the ReadMe.txt file once more and see where you are missing the additions to the application_top and english.php files on the catalog and admin side for everything to work right.

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