Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NEED HELP With Whats New On Main Page


NS-Icon

Recommended Posts

Hi all,

 

I have a question, I have looked almost everywhere and can't find a solution.

 

I would like to know how to put a box like: 'What's New' on the main page above 'New Products For September'

 

If anyone could help I would be very grateful

 

Thanks

Link to comment
Share on other sites

What exactly do you mean "a box like: 'What's New'"? Do you want that as text displayed above the new products box? Why not just change the title of the New Products box to be what you want? In catalog/includes/languages/english/index.php, change:

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

to:

define('TABLE_HEADING_NEW_PRODUCTS', 'What\'s New For %s');

Link to comment
Share on other sites

Not quite right,

 

What I need is a box that shows the latest products (What?s New). But I don?t want the box on the left or the right.

 

I need the box above New Products for (Month). So it is on the main page and not on the sides.

 

Not sure if this explanation is any better

Link to comment
Share on other sites

Ok, now I see. In index.php, find these lines (they'll appear twice):

 

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

and before them insert:

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

 

and in catalog/includes/column_left.php, delete:

  require(DIR_WS_BOXES . 'whats_new.php');

Link to comment
Share on other sites

You wouldn't put it in a languages file. As for formatting, it's a standard infobox. But you can go look at includes/boxes/whats_new.php, study the code that acually queries the database, then format the output in whatever form you desire.

Link to comment
Share on other sites

Right Thanks for that ill go take a look,

 

One more question, when selecting a product category from the menu, you see a list of products that belong to a particular category.

 

Is there a way to increase the maximum number of text for the product title?

Link to comment
Share on other sites

Do you mean the Product Name as shown in the listing? If you have product names longer than what can show there, you will need to increase the length in the database field.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...