Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Customer Add Product


408 replies to this topic

#41 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 03 May 2005, 22:08

<_< keep getting the same problem everytime hope some1 can help me out
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 empo

  • Community Member
  • 109 posts
  • Real Name:maxim
  • Gender:Male
  • Location:Сибирь

Posted 03 May 2005, 22:47

try to update file "account_add.php" from 1.3.1

probably you have old version of account_add.php

#43 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 03 May 2005, 23:43

now i have the following problem when i update a product as customer it's not added to the catalog and all the manufaturers are all called 0

#44 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 03 May 2005, 23:54

sorry it works for 99% now but when i wanna manage my product the following error occures:Fatal error: Cannot redeclare tep_draw_file_field() (previously declared in /data/members/paid/1/2/12tie.nl/htdocs/www/includes/functions/html_output.inc.php:3) in /data/members/paid/1/2/12tie.nl/htdocs/www/includes/functions/product_manage.php on line 5
i :thumbsup: hope there is a way to solve it cause i love this contrib

#45 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 03 May 2005, 23:57

and the manufacturers are all still called 0 in the drop down box

#46 empo

  • Community Member
  • 109 posts
  • Real Name:maxim
  • Gender:Male
  • Location:Сибирь

Posted 04 May 2005, 05:20

you need to erase "html_output.inc.php"
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 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 04 May 2005, 09:32

thanks i'm using the sts_template and now im having problems with the sts_user_code.php hopefully you know about this template and how do i get my manufacturers back cause the names are still 00000000 anyway thanks for your support :thumbsup:

#48 empo

  • Community Member
  • 109 posts
  • Real Name:maxim
  • Gender:Male
  • Location:Сибирь

Posted 04 May 2005, 11:03

about template system yes i know but no problem should be with this template

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 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 04 May 2005, 11:19

thanks i'm looking forward to see your new update :D

#50 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 04 May 2005, 11:38

This is the error i'm getting still after everything you said:Fatal error: Cannot redeclare tep_get_category_tree() (previously declared in /data/members/paid/1/2/12tie.nl/htdocs/www/includes/functions/product_manage.php:79) in /data/members/paid/1/2/12tie.nl/htdocs/www/includes/sts_user_code.php on line 42 <_<

#51 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 04 May 2005, 13:28

I reinstalled OsCommerce and now without the sts it works but i can't manage my products because of this problem:Parse error: parse error, unexpected '}' in /data/members/paid/1/2/12tie.nl/htdocs/www/account_manage.php on line 777
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 :huh:

#52 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 04 May 2005, 13:40

and remove the the manufacturers box from the add product part of the contrib.?

#53 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 04 May 2005, 14:06

tried to install the sts template again but the error still occures:Fatal error: Cannot redeclare tep_get_category_tree() (previously declared in /data/members/paid/1/2/12tie.nl/htdocs/www/includes/functions/product_manage.php:79) in /data/members/paid/1/2/12tie.nl/htdocs/www/includes/sts_user_code.php on line 42
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 :rolleyes:

#54 empo

  • Community Member
  • 109 posts
  • Real Name:maxim
  • Gender:Male
  • Location:Сибирь

Posted 04 May 2005, 20:43

problem that sts and my module use same functions

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 . '&nbsp;&nbsp;&nbsp;', $exclude, $category_tree_array);
    }

    return $category_tree_array;
  }

Edited by empo, 04 May 2005, 20:44.


#55 empo

  • Community Member
  • 109 posts
  • Real Name:maxim
  • Gender:Male
  • Location:Сибирь

Posted 04 May 2005, 20:56

Fixed bug with manufacturer

#56 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 04 May 2005, 21:43

thanks but now all my products are GONE!!! thnx for the great work you did read what you said about customer_id but my customer_id is still the same but the products are gone :-"

#57 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 05 May 2005, 00:48

thanks a lot everything works properly many credits for this contrib. :thumbsup:

#58 p_angel0

  • Community Member
  • 30 posts
  • Real Name:Pasqualle

Posted 05 May 2005, 01:05

one more tiny problem the price NET and price GROSS are the same but in the admin section it calculates the price including the tax hope not to bother you ;)

#59 empo

  • Community Member
  • 109 posts
  • Real Name:maxim
  • Gender:Male
  • Location:Сибирь

Posted 05 May 2005, 05:19

ok i will check it

#60 Culture-Books

  • Community Member
  • 34 posts
  • Real Name:Albert

Posted 10 May 2005, 14:39

Hey empo I went on your site, logged in with test@est.com, and went to My Account but there is no link to add a new product!! where is it please?