Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

annuity

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by annuity

  1. Hi Jack, Many thanks for that mate that seems to have done the trick. Great contribution by the way your work is much appreciated. I have only just found out that sadly Chemo died last year and i decided to make more of an effort to thank people like yourself for your good work.
  2. Hi Jack, Many thanks for getting back to me. I'm afraid that didn't make any difference unfortunately. I'm not a coder just a site owner so i'm afraid i'm not much help but do you possibly have any more ideas? I've googled around and found some php files that look like some fork of oscommerce with a category function that has an "exclude" element, i wonder if you have seen it? Is there maybe something further down the code in the category_tree_no_products.php file that could be tweaked around the "while" statement or in the "buildbranch" function itself to exclude the current category id?
  3. Hi Jack, Sorry to double post but i forgot to ask you my other question. Please could you help me convert 2 eregi's in includes/functions/sitemap.php for php 5.3. The 2 lines are as follows: <?php if (eregi("<a(.*)</a", $lines[$i], $out)) { if (eregi("tep_href_link((.*))", $out[1], $locn)) { ?>
  4. Hi Jack, Ive gone through the whole thread and not seen this asked before so apologies if it has. With regards the related categories links, is it possible to exclude the current category? At the moment when on a subcategory all related categories including the one you are already on are returned. I would like to exclude the current category from the list if possible. I'm playing with the sql query in category_tree_no_products.php but nothing is working. Please could you help. The relevant code i need to tweak i think is this in category_tree_no_products.php: <?php function osC_CategoryTree($catID = 0, $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 left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on c.categories_id = cd.categories_id where cd.language_id = '" . (int)$languages_id . "' order by c.parent_id, c.sort_order, cd.categories_name"); $this->data = array(); $this->root_category_id = $catID; while ($categories = tep_db_fetch_array($categories_query)) { $this->data[$categories['parent_id']][$categories['categories_id']] = array('name' => $categories['categories_name'], 'count' => 0);} } //end class osC_CategoryTree ?>
×
×
  • Create New...