Jump to content

doublesam

Members
  • Content count

    8
  • Joined

  • Last visited

Everything posted by doublesam

  1. Hello all! Special thanks for this amazing contribution. I get it working for the products and categories. However, I would like to know if there is a way to make other sitemaps for the rest of the site. For instance, I have included a section which is called "News". This information is not in the database. What would be the best way to let Google and other search engines aware of these additional pages, not included in the sitemap?
  2. Hi Jack, Great answer! You sent me straight to the point, and it works now! Thanks again for your help and this amazing contribution ... :thumbsup: Doublesam
  3. Hello all, Thanks so much for this great contribution! I managed to install the contribution, except I don?t get the ?Header Tags Categories Description?, beneath the subcategory title, on the subcategory product listing. It works fine for the category product listing. It might have something to see with: <?php echo $htc['htc_description']; ?>, so I enclose a copy of the area where it is located in index .php: <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"> <?php echo $tree[$current_category_id]['name']; ?> <?php // optional Product List Filter if (PRODUCT_LIST_FILTER > 0) { if (isset($HTTP_GET_VARS['manufacturers_id'])) { $filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name"; } else { $filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name"; } $filterlist_query = tep_db_query($filterlist_sql); if (tep_db_num_rows($filterlist_query) > 1) { echo ' <td align="center" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . '?'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']); $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)); } else { echo tep_draw_hidden_field('cPath', $cPath); $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)); } echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']); while ($filterlist = tep_db_fetch_array($filterlist_query)) { $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']); } echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"'); echo '</form></td>' . "\n"; } } // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } ?> <td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, $category['categories_htc_title_tag'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> <?php if (tep_not_null($htc['htc_description'])) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><h2><?php echo $htc['htc_description']; ?></h2></td> </tr> <?php } ?> </table> I looked around in the thread so as to find out a solution, but was unable to solve that matter. I don?t use templates. Does anyone could help me? Again, many thanks!!!
  4. Hi all, I am working with the more_category_boxes contribution: http://www.oscommerce.com/community/contri...+category+boxes It works fine so far, and the contribution is simple to install. It allows the creation of new category boxes, with multilingual content, but the box title is only available in english. How to make the title of these new boxes multilingual, as for the other boxes? 3 new files have been uploaded: admin/more_categories.php admin/includes/languages/english/more_categories.php includes/boxes/more_categories.php I guess I should work on the includes/boxes/more_categories.php file, to have the box title multilingual, such as the other boxes. The code of that file is: In that code, the instruction regarding the title is: 'name' => $_categories['infobox_name'], I might also say that a new table, `categories_more`, has been added to the database, in which the 'infobox_name' is defined. How could I modify that code to make the box title multilingual, like the other boxes? Obviously, you might have notices that my PHP knowledge is scarce... Many thanks for help! Doublesam
  5. Hi , I think I should do it in the same way than it is done in the box Categories, for the Category names . The Category names change according to language in the Category box. I want the same but for the title in the More Category boxes. I should have to create an additional table in the database, for instance called more_categories_title. This table should have 3 fields, in the same way than the categories_description table Box_id Language_id Infobox_name What would be the instruction to have the box title changing according to language? I think I should copy the code that is used in boxes/categories.php, but I don?t know exactly how to integrate it: Anyone could help me? Many thanks because I 'm lost...
  6. Hi all, I am working with the more_category_boxes contribution: http://www.oscommerce.com/community/contri...+category+boxes it works fine so far, and the contrbution is simple to install. I would recommend it. However, I am strugling to make it multilingual. In fact, I only need the box title to be multilingual, as the categories are already multilingual. 3 new files have been uploaded: admin/more_categories.php admin/includes/languages/english/more_categories.php includes/boxes/more_categories.php I guess I should work on the includes/boxes/more_categories.php file, to have the box title multilingual, such as the other boxes. The code of that file is: In that code, the instruction regarding the title is: 'name' => $_categories['infobox_name'], I might also say that a new table, `categories_more`, has been added to the database, in which the 'infobox_name' is defined. How could I modify that code to make the box title multilingual, like the other boxes? Obviously, you might have notices that my PHP knowledge is scarce... Many thanks for help! Doublesam
  7. doublesam

    [Contribution] More Category Boxes

    Hi all! Has any one managed to display dategory name in main content (in the product listing page) using the More Category Boxes contribution?. I don't have anything appearing there. Actually, there is a contribution which does that (Display Category Name In Main Content), it is a simple line of code: In /catalog/index.php, find this code (line 232 in clean osCommerce v2.2 MS) <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> and change to : <td class="pageHeading"> <?php // hacked to display current category name in main content area! echo $tree[$current_category_id]['name']; ?> But I did not managed to make it work with More Category Boxes. Doublesam Secondary question: would it be very difficult to have the box heading titles multilingual? Thanks for the help.
×