Latest News: (loading..)

shooter-boy

Members
  • Content count

    594
  • Joined

  • Last visited

6 Followers

About shooter-boy

Profile Information

  1. Thanks Bill - i was JUST about to post that i finally got it working. It was very odd - it simply didn't render the infobox templates - almost as if i had switched the option off (definately checked it and it was on). I am using the new header tags controller, and i think i managed to mess something up in the install - was just odd that everything else is working. Having effectively removed the header tags contributions, it's working now - so i'll go back through everything and see what broke it :D rob
  2. Hi All, I'm using a fresh install of RC2.2 for a new shop, and have installed the latest version of STS. All my templates are working great, except for infobox templates. I have double/triple checked all admin configurations etc. Any ideas? I have used STS on many stores for a long time, but never had this problem. Thanks, Rob
  3. There is an inherit programming flaw in the query that generates the content for the txt file. Line 181 order by c.customers_lastname, c.customers_firstname limit 20"; should be order by c.customers_lastname, c.customers_firstname"; This will produce all results no matter what your paging is setup to display. Rob
  4. Sorry, but without knowing exactly what you have, it is terribly hard to advise accurately. Do you have a link to where you got it from or anything like that? Rob
  5. Yes :D Rob
  6. To all of you. Check that there is not a stray FOR loop in the product listing. If there is, it will cause everything to run until it overflows. If you want me to take a look, email or PM me with the details and i'll see what i can do. Rob
  7. Sounds like the code hasn't been included in the sts_user_code file. Your STS docs should be enough to explain how to do this. Rob
  8. From my experience, most templates are a complete osCommerce install all to themselves, as they are heavily integrated into the code... Rob
  9. Hi All, I have just installed the 2.1d contribution. However, I get an error "Too many redirects occurred trying to open <URL> This might occur if you open a page that is redirected to open another page which then is redirected to open the original page." Does anyone have any ideas? I have tried installing a few times, and get the same error each time. Many thanks, Rob
  10. Hi All, Not that i think anyone is reading this post, but incase you stumble accross it, i found the solution to my above problem. Take the code that defines the image size // display category name if (tep_not_null($tree[$counter]['image'])) { $categories_string .= tep_image(DIR_WS_IMAGES . $tree[$counter]['image'], $tree[$counter]['name'], '30', '30'); }else{ $categories_string .= $tree[$counter]['name']; } if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</b>'; } All you have to do is remove the numbers from the image size. So this line $tree[$counter]['name'], '30', '30'); ends up as $tree[$counter]['name']); I can't believe it was that simple. Ah well. *hits self on forehead* Rob
  11. Can you simply use the ATTRIBUTES feature? You can assign specific attributes to products... so i can't see why not. The dollar value can go up and down accordingly etc etc... Rob
  12. Hi Everyone. I know this is a really old thread, so hopefully someone still knows about it. Does anyone know how to make the sub categories appear with smaller images than the parent categories? I have tried to do it with my extremely limited PHP skill, to no avail. I am sure it wouldn't be too hard with the right commands. I am using the images no text version. <?php /* $Id: categories.php,v 1.25 2003/07/09 01:13:58 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } $categories_string .= '<a href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">'; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<b>'; } // display category name if (tep_not_null($tree[$counter]['image'])) { $categories_string .= tep_image(DIR_WS_IMAGES . $tree[$counter]['image'], $tree[$counter]['name'], '30', '30'); }else{ $categories_string .= $tree[$counter]['name']; } if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</b>'; } // if (tep_has_category_subcategories($counter)) { // $categories_string .= '->'; // } $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br>'; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> <!-- categories //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, true, false); $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, c.categories_image, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'image' => $categories['categories_image'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } //------------------------ if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, c.categories_image, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'image' => $row['categories_image'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } tep_show_category($first_element); $info_box_contents = array(); $info_box_contents[] = array('text' => $categories_string); new infoBox($info_box_contents); ?> </td> </tr> <!-- categories_eof //--> Many thanks, Rob
  13. Hi All, Firstly, STS is AWESOME, and thankyou to all that developed and supported it. I have a small issue that i cannot seem to sort out. I have changed the size/colour of the breadcrumbs in the header for the index pages, but when i go to a product listing, it reverts back to the original size. Same for search results. Is there somewhere that this can be globally changed by default? I have looked, but cannot find. Many thanks in advance. Rob