Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mainpage: get rid of the header AND new products box How?


CoolAJ

Recommended Posts

Hi,

 

could you please tell me how to get rid of the header "Whats new here?" and the New products box on the main page?

 

The contribution define_mainpage doesn't work so I need to do it manually.

 

Which files are to be changed?

 

Thank you,

 

AJ

Link to comment
Share on other sites

This works somewhat. open default.php in catalog/ directory. find this line.. around 230 in the newest snapshot.. should be similar in older versions.

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

Make sure you backup the file first, then delete it.

 

To get rid of the new products from showing up on the main page.. Look for this in default.php.

 

<tr>

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

         </tr>

 

Delete it :)

Link to comment
Share on other sites

Better is to set HEADING_TITLE to '' in includes/languages/english/default.php (replace english with a different language if necessary). It's easier to restore it later and allows you to separate the three situations when it is printed. It will look like this after:

define('HEADING_TITLE', '');

Good luck,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...