Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Key Features Missing! Lets try and create them? ...


Dennis Thompson

Recommended Posts

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

-Ability to disable image for all/each category
Quick 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

-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

-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

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

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

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

  • 3 years later...
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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...