Jump to content

HappyFace

Members
  • Content count

    26
  • Joined

  • Last visited

Profile Information

  • Real Name
    Michael
  • Location
    Tustin, California
  • Website
  1. HappyFace

    attrib sorter problem

    I suggest you put back the original "products_attributes.php" and go from there.
  2. HappyFace

    Contrib, 2208 Sitemap 2.2MS2: Question

    Never mind. I solved the problem. Michael
  3. HappyFace

    Attribute Sets Contribution

    Thanks Joey. This thing works great. I was gonna give up osCommerce caz of this product attribute problem. Now it is much much easier to manage options and etc. By the way is there anyway to display the option names same order of attribute set like in the admin product page? Store's product listing page always display in alphabet order. Michael
  4. After I installed the original contribution v1, cliking the sitemap url gives me the following: I spent hours and days :blink: :'( # ', $parent_group_end_string = '', $child_start_string = '', $child_end_string = ' ', $spacer_string = '', $spacer_multiplier = 1; function osC_CategoryTree($load_from_database = true) { global $languages_id; $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 . "' order by c.parent_id, c.sort_order, cd.categories_name"); $this->data = array(); while ($categories = tep_db_fetch_array($categories_query)) { $this->data[$categories['parent_id']][$categories['categories_id']] = array('name' => $categories['categories_name'], 'count' => 0); } } function buildBranch($parent_id, $level = 0) { $result = $this->parent_group_start_string; if (isset($this->data[$parent_id])) { foreach ($this->data[$parent_id] as $category_id => $category) { $category_link = $category_id; $result .= $this->child_start_string; if (isset($this->data[$category_id])) { $result .= $this->parent_start_string; } if ($level == 0) { $result .= $this->root_start_string; } $result .= str_repeat($this->spacer_string, $this->spacer_multiplier * $level) . ''; $result .= $category['name']; $result .= ''; if ($level == 0) { $result .= $this->root_end_string; } if (isset($this->data[$category_id])) { $result .= $this->parent_end_string; } $result .= $this->child_end_string; if (isset($this->data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level+1))) { $result .= $this->buildBranch($category_id, $level+1); } } } $result .= $this->parent_group_end_string; return $result; } function buildTree() { return $this->buildBranch($this->root_category_id); } } ?> Fatal error: Class 'osC_CategoryTree' not found in E:\catalog\sitemap.php on line 56 Any ideas? I would appreciate the help greatly because I am stucked with this problem days already. I like to move on. Thank you in advance. Michael
  5. I installed this package and it works fine. Actually it's great. In product-listing page it shows two prices. One new updated price if user took a more valuable option. And still the original price at the right upper corner. But I want the updated price dispalyed upper right corner where php code wrote. Or if that is not possible, I want to delete the upper right place's price and write new price formated. Any suggestions? Thanks in advance for any help. Michael
×