Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove new products for (month) and catalog title


DarthVader

Recommended Posts

Hi,

 

I couldn't find the answer in previous postings so here goes:

how do I remove the category title benetath the category image? I still want it listed in the left hand column just removed from under the image as I have included the name of the category in the image.

 

Also the new products for (month) and what's new on the left hand column - where does oscommerce pick up these settings and how can I remove this whole section.

Link to comment
Share on other sites

easy..

 

just put comment out this part in catalog/includes/classes/boxes/categories.php

 

$info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

                              'text'  => BOX_HEADING_CATEGORIES

                             );

 new infoBoxHeading($info_box_contents, true, false);

 

So it should look like this after your done..

 

  /*$info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

                              'text'  => BOX_HEADING_CATEGORIES

                             );

 new infoBoxHeading($info_box_contents, true, false);

   */

 

:)

Link to comment
Share on other sites

and the new products/what's new boxes can be removed in either catalog/includes/column_left.php or column_right.php depending on where they're located.

 

Just comment out the lines..

 

// require(DIR_WS_BOXES . 'whats_new.php');

 

Do the same for any other boxes you want to remove :o

Link to comment
Share on other sites

easy..

 

just put comment out this part in catalog/includes/classes/boxes/categories.php

 

$info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

                              'text'  => BOX_HEADING_CATEGORIES

                             );

 new infoBoxHeading($info_box_contents, true, false);

 

So it should look like this after your done..

 

  /*$info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',





                              'text'  => BOX_HEADING_CATEGORIES

                             );

 new infoBoxHeading($info_box_contents, true, false);

   */

 

:)

 

Hi Chad,

 

Removing 'what's new' worked but this tip to remove text titles beneath the category images did not. I think I may have confused the point - I want to remove the text underneath the category image say the 'Hardware' image and just leave the image without the text underneath and not the text above the categiry images that says 'Category'.

 

Your help has been much appreciated.

Link to comment
Share on other sites

To remove the category title from below the category image you need to edit the default.php file

 

Back this file up first!

 

Then on or around line 100 find the following line;

 

echo '                <td align="center" class="smallText" style="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";

 

.... and replace with.......

 

echo '                <td align="center" class="smallText" style="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) . '</a></td>' . "n";

 

And thats it!

 

I think you have the answer to the other part of your question from the other posts!?

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

Fantastic, Rumble! It works perfectly - now then, all I need is to move the welcome message:

 

'Welcome (Username)! Would you like to log yourself in? Or would you prefer to create an account?'

 

from the default page to this category page. Anyone done this yet?

 

Thanks again.

Link to comment
Share on other sites

Add a loginbox contribution , go to downloads, then contirbutions on left, then find the login box , I belive it in info boxes, but I might be wrong

Link to comment
Share on other sites

Open default.php and around line 314 CUT the following lines out

 

          <tr>

           <td class="main"><?php echo tep_customer_greeting(); ?></td>

         </tr>

 

Then PASTE the above code AFTER around line 293 and line 74 where you see the following code...

 

      <tr>

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

     </tr>

 

 

Then upload!

 

Back up before you try!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...