Fatal error: Call to undefined function: tep_get_languages() in /data/members/paid/1/2/12tie.nl/htdocs/www/account_add.php on line 192 thanks in forward
Customer Add Product
#41
Posted 03 May 2005, 22:08
Fatal error: Call to undefined function: tep_get_languages() in /data/members/paid/1/2/12tie.nl/htdocs/www/account_add.php on line 192 thanks in forward
#42
Posted 03 May 2005, 22:47
probably you have old version of account_add.php
#43
Posted 03 May 2005, 23:43
#44
Posted 03 May 2005, 23:54
i
#45
Posted 03 May 2005, 23:57
#46
Posted 04 May 2005, 05:20
after this go to html_output.php and find this code:
//BOF:Add new product
require('html_output.inc.php');
//EOF:Add new product
Delete it.
#47
Posted 04 May 2005, 09:32
#48
Posted 04 May 2005, 11:03
about manufacturers i will check it
also another bug found non approved customer can enter to manage products
In next version i will fix it
#49
Posted 04 May 2005, 11:19
#50
Posted 04 May 2005, 11:38
#51
Posted 04 May 2005, 13:28
But this document is the same as yours and goes till line 767 is it possible to remove the manage my products link so even though the problem is still there nobody can see it
#52
Posted 04 May 2005, 13:40
#53
Posted 04 May 2005, 14:06
This is what's on line 42
function tep_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $category_tree_array = '', $include_itself = false) { i'm a noob so don't know what the problem is maybe you do #54
Posted 04 May 2005, 20:43
you may go to includes\functions\product_manage.php
and erase this function:
function tep_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $category_tree_array = '', $include_itself = false) {
global $languages_id;
if (!is_array($category_tree_array)) $category_tree_array = array();
if ( (sizeof($category_tree_array) < 1) && ($exclude != '0') ) $category_tree_array[] = array('id' => '0', 'text' => TEXT_TOP);
if ($include_itself) {
$category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd where cd.language_id = '" . (int)$languages_id . "' and cd.categories_id = '" . (int)$parent_id . "'");
$category = tep_db_fetch_array($category_query);
$category_tree_array[] = array('id' => $parent_id, 'text' => $category['categories_name']);
}
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and c.parent_id = '" . (int)$parent_id . "' order by c.sort_order, cd.categories_name");
while ($categories = tep_db_fetch_array($categories_query)) {
if ($exclude != $categories['categories_id']) $category_tree_array[] = array('id' => $categories['categories_id'], 'text' => $spacing . $categories['categories_name']);
$category_tree_array = tep_get_category_tree($categories['categories_id'], $spacing . ' ', $exclude, $category_tree_array);
}
return $category_tree_array;
}
Edited by empo, 04 May 2005, 20:44.
#55
Posted 04 May 2005, 20:56
#56
Posted 04 May 2005, 21:43
#57
Posted 05 May 2005, 00:48
#58
Posted 05 May 2005, 01:05
#59
Posted 05 May 2005, 05:19
#60
Posted 10 May 2005, 14:39














