Jump to content

Elmo

Members
  • Content count

    195
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Elmo
  1. Hi Jack, many thanks for your help! Many thanks!!!! :lol:
  2. Thanks Jack, may I also confirm if it can be applied to MS1?
  3. May I ask if the newst version of this contribution named "Header Tags Controller V2.6.2 Complete" can be applied to osCommerce v2.2 MS2? Thanks in advance.
  4. Elmo

    Browse by Categories

    Hi Strider, Thanks very much for your reply! I tried different ways including adding the necessary codes to index_default.tpl.php (supposed to be added to index.php but since I have BTS so I tried to see if that work. And it did not work. The following is my index_default.tpl.php: <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"> <?php if ( (ALLOW_CATEGORY_DESCRIPTIONS == 'true') && (tep_not_null($category['categories_heading_title'])) ) { echo $category['categories_heading_title']; } else { echo HEADING_TITLE; } ?> <?php if ( (ALLOW_CATEGORY_DESCRIPTIONS == 'true') && (tep_not_null($category['categories_description'])) ) { ?> <tr> <td align="left" colspan="2" class="category_desc"><?php echo $category['categories_description']; ?></td> </tr> <?php } ?> </td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><br><?php include(DIR_WS_MODULES . FILENAME_DEFAULT_SPECIALS); ?></td> </tr> <tr> <td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> <!-- DWD Contribution -> Remove: Browse by Categories v2.2. //--> <!-- <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> //--> <!-- DWD Contribution End. //--> <?php // DWD Contribution -> Remove: Browse by Categories v2.2. // if (isset($cPath) && strpos('_', $cPath)) { // // check to see if there are deeper categories within the current category // $category_links = array_reverse($cPath_array); // for($i=0, $n=sizeof($category_links); $i<$n; $i++) { // $categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'"); // $categories = tep_db_fetch_array($categories_query); // if ($categories['total'] < 1) { // // do nothing, go through the loop // } else { // $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); // break; // we've found the deepest category the customer is in // } // } // } else { // $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); // } // $number_of_categories = tep_db_num_rows($categories_query); // $rows = 0; // while ($categories = tep_db_fetch_array($categories_query)) { // $rows++; // $cPath_new = tep_get_path($categories['categories_id']); // $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; // echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; // if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { // echo ' </tr>' . "\n"; // echo ' <tr>' . "\n"; // } // } // DWD Contribution End. // needed for the new products module shown below $new_products_category_id = $current_category_id; ?> <!-- DWD Contribution -> Remove: Browse by Categories v2.2. !--> <!-- </tr> </table></td> </tr> //--> <!-- DWD Contribution End. //--> <!-- BEGIN latest news --> <tr> <td><br><?php define('LATEST_NEWS_BOX', "classic"); include(DIR_WS_MODULES . FILENAME_LATEST_NEWS); ?></td> </tr> <!-- END latest news --> <?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> </table></td> </tr> </table>
  5. Elmo

    Browse by Categories

    Thanks for the contribution! I have one problem after I installed it. The "Browse by category" box does not show in the catalog at all. I am using MS2 version 2.2 and the BTS (Basic Template System) mod's installed as well. May I as if that's the reason why it does not show? Please shed some light on this, thanks very much! :)
  6. Hi, thanks for sharing this great contribution! It's very useful. I have one quick question. :) Is there a way to modify the query to show the top level when we find the product? I searched for the whole thread and other 2 threads regarding this contribution but I cannot find any solution for this issue. Any help is much appreciated. Thanks.
  7. Elmo

    Customer Loyalty Discount module

    May I ask what's the link to this mod?
  8. Thanks for your reply, Jason! You offer a lot of help to me and I appreciate this very much! :D
  9. HI Mehmet, may I ask what's the difference between this contribution and "Category Descriptions 1.0" at http://www.oscommerce.com/community/contributions,191 ? Your contribution seems very nice! :)
  10. May I ask if we can use this contribution in MS1? Or how can we modify so that we can use this in MS1? Thanks. :)
  11. May I ask if anyone have installed "All Categories & Subcategories Page" at http://www.oscommerce.com/community/contri...ons,1213/page,3 ? It seems like a very useful contribution, can anyone share their experiences?
  12. Elmo

    poll booth 2.0

    May I ask if we can use the latest version of this contribution in both MS1 and MS2? Thanks. :)
  13. Jason, I forgot to ask you if you knw whether Credit Class/GV/Discount Coupons v5.03 (plus the 07/07/2003 - GV5.03 Bug Fixes) have fix all the bugs? May I also ask if we can use both the "Discount for Payment Type" (http://oscommerce.com/community/contributions,248/page,2) and Credit Class/GV/Discount Coupons v5.03 for MS1? Many thanks, Jason! :D
  14. Hi Jason, thanks very much for your great help! :D
  15. May I ask a quick question regarding this contribution? May I ask if we should use Credit Class/GV/Discount Coupons v5.03 (plus bug fix for v5.03) for 2.2 MS1 or can we use GV-DC 5.06? Many thanks.
×