Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing New Products box


Jacson

Recommended Posts

Posted

I know someone has done this but I can't find it. How can I remove the "New products" box from showing on every page? It seems to be there under the product or catagory listings and i would rather not display this catagory at all.

 

Thanks!

 

Jac

Posted
I know someone has done this but I can't find it.  How can I remove the "New products" box from showing on every page?  It seems to be there under the product or catagory listings and i would rather not display this catagory at all.

 

Thanks!

 

Jac

 

 

It is in your index.php file

 

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

Hi Jac,

 

There are 2 of the above codes in index.php

 

One is for your home page and the other is for categories page. (Keep in mind that index.php actually contain 3 different pages.)

Posted

Thanks both of you - I found the line, there is actaully three references in the index.php file but what do i do with it? Comment it out or remove it? I tried commenting all three lines but I get a nasty bunch of errors.

 

Thanks again!

Posted

never mind - I got it - I was looking at the wrong line (PRODUCT LISTING) instead of NEW product . I just commented out the one line, so now the new products box is on the home/catalog page but not the catagories page.

 

Interesting though, the new products box only showed up on the "sample" catagory headings that came out of the box, it was NOT showing up on any NEW catagories I was adding. Know why?

 

Jac

Posted

There should only be 2 of them in the entire store (on unmodified, fresh installation)

 

Here is how to comment them out.

 

            <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

to

            <td><?php //include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

 

Sorted. :thumbsup:

Posted
Ok - got it, like I said in the above fast reply.

 

Thanks for following me!

 

Good luck, post the link to your site in this forum when you're done. You'll get plenty of tips&tricks and suggestions. B)

Archived

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

×
×
  • Create New...