Dennis Thompson Posted September 29, 2002 Share Posted September 29, 2002 Hi Guys, it's been a few weeks. Well I got paid by the client and man I'm a happy chap! Thanks to you guys on here! Some key features missing: -Ability to disable image for all/each category -The ability to display the category name instead of "Lets See What We Have Here!" If anybody has already fixed these problems, I would love to know how (or if there is a contribution, as I did not find any!) Other than these two missing features, osCommerce is the top dog![/b] Link to comment Share on other sites More sharing options...
burt Posted September 29, 2002 Share Posted September 29, 2002 -Ability to disable image for all/each categoryQuick Fix, FTP into the server and delete the category images. Set in Admin > Configuration > Images > Image Required > False Haven't tried implementing the other solution, but can't see it being (much of) a problem... Link to comment Share on other sites More sharing options...
Mark Evans Posted September 29, 2002 Share Posted September 29, 2002 -The ability to display the category name instead of "Lets See What We Have Here!" There is a contrib which allows you to display a category description that could easily be modified to show the category name. :) Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds) Link to comment Share on other sites More sharing options...
Guest Posted September 29, 2002 Share Posted September 29, 2002 that's what it's about,eh? a man after my own heart... I tell 'em "...the software is free, but my time is gonna cost ya..." Link to comment Share on other sites More sharing options...
Dennis Thompson Posted September 29, 2002 Author Share Posted September 29, 2002 -The ability to display the category name instead of "Lets See What We Have Here!" There is a contrib which allows you to display a category description that could easily be modified to show the category name. :) Yeah, but it wouldnt get rid of "Lets See What We Have Here!" Link to comment Share on other sites More sharing options...
mpdaddy Posted September 29, 2002 Share Posted September 29, 2002 go to http://www.redtag.net and tell me if this is what you are speaking of. I display the category name instead of "Lets See What We Have Here!". Regards Wayne Link to comment Share on other sites More sharing options...
Guest Posted September 29, 2002 Share Posted September 29, 2002 Hi Guys, it's been a few weeks. Well I got paid by the client and man I'm a happy chap! Thanks to you guys on here! Some key features missing: -Ability to disable image for all/each category -The ability to display the category name instead of "Lets See What We Have Here!" If anybody has already fixed these problems, I would love to know how (or if there is a contribution, as I did not find any!) Other than these two missing features, osCommerce is the top dog![/b] Can I ask you how much you charched your client? Link to comment Share on other sites More sharing options...
Dennis Thompson Posted September 29, 2002 Author Share Posted September 29, 2002 go to http://www.redtag.net and tell me if this is what you are speaking of. I display the category name instead of "Lets See What We Have Here!". Regards Wayne omg!!!!! this is it EXACTLY!!! wow... how do i do this?!?! my client is desperate for that! please, please tell me! :D Link to comment Share on other sites More sharing options...
Dennis Thompson Posted September 29, 2002 Author Share Posted September 29, 2002 Hi Guys, it's been a few weeks. Well I got paid by the client and man I'm a happy chap! Thanks to you guys on here! Some key features missing: -Ability to disable image for all/each category -The ability to display the category name instead of "Lets See What We Have Here!" If anybody has already fixed these problems, I would love to know how (or if there is a contribution, as I did not find any!) Other than these two missing features, osCommerce is the top dog![/b] Can I ask you how much you charched your client? "Strictly Confidential" :wink: (*cough*damn near 2k*cough*) Link to comment Share on other sites More sharing options...
mpdaddy Posted September 30, 2002 Share Posted September 30, 2002 I am using version 1.77 of default.php. Make sure you make a backup of your default.php file before trying this. Find this in your catalog/default.php file. <?php if ($category_depth == 'nested') { $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); $category = tep_db_fetch_array($category_query); ?> <td width="100%" valign="top"><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 echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> and replace <?php echo HEADING_TITLE; ?> with this <?php echo $category['categories_name']; ?> Then find this } elseif ($category_depth == 'products' || $HTTP_GET_VARS['manufacturers_id']) { and put this right below it $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); $category = tep_db_fetch_array($category_query); then find this code ?> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <form> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <?php // optional Product List Filter if (PRODUCT_LIST_FILTER) { and replace <?php echo HEADING_TITLE; ?> with this <?php echo $category['categories_name']; ?> Hope that works for you. Regards Wayne Link to comment Share on other sites More sharing options...
Dennis Thompson Posted September 30, 2002 Author Share Posted September 30, 2002 thanks very much old boy... i will get ?350 if i can do this and a few general alterations to the site... :arrow: hpdl, i love you man!!! :D Link to comment Share on other sites More sharing options...
firebird_411 Posted February 6, 2006 Share Posted February 6, 2006 I am using version 1.77 of default.php. Make sure you make a backup of your default.php file before trying this.Find this in your catalog/default.php file. <?php ?if ($category_depth == 'nested') { ? ?$category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); ? ?$category = tep_db_fetch_array($category_query); ?> ? ?<td width="100%" valign="top"><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 echo HEADING_TITLE; ?></td> ? ? ? ? ? ?<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> ? ? ? ? ?</tr> and replace <?php echo HEADING_TITLE; ?> with this <?php echo $category['categories_name']; ?> Then find this ?} elseif ($category_depth == 'products' || $HTTP_GET_VARS['manufacturers_id']) { and put this right below it ? ?$category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); ? ?$category = tep_db_fetch_array($category_query); then find this code ?> ? ?<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> ? ? ?<tr> ? ? ? ?<td><table border="0" width="100%" cellspacing="0" cellpadding="0"> ? ? ? ? ?<form> ? ? ? ? ?<tr> ? ? ? ? ? ?<td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <?php // optional Product List Filter ? ?if (PRODUCT_LIST_FILTER) { and replace <?php echo HEADING_TITLE; ?> with this <?php echo $category['categories_name']; ?> Hope that works for you. Regards Wayne I would like to change the message on the main page as well. I looked for the default.php file. But, could not locate it. I have CRE Loaded 6.15. Can you suggest where I should be looking for the default.php file? Thanks Link to comment Share on other sites More sharing options...
Flyer5 Posted February 6, 2006 Share Posted February 6, 2006 thanks very much old boy... i will get ?350 if i can do this and a few general alterations to the site... :arrow: hpdl, i love you man!!! :D we all love harald... but if my clients caught me doing this... "Strictly Confidential" :wink: (*cough*damn near 2k*cough*) in a public forum i suspect they wouldn't be my clients for long! A bit unethical isnt it? Still - with all the money you're making you can afford to become a community sponsor now! Click here! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.