Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display categories in main section on front screen


launcap

Recommended Posts

Hi,

 

I have managed to remove the "new products for month" box on the front screen and replace it with the top-level categories view (ie the same as the default 'Categories' box at top-left).

 

Sadly my boss is now asking if it is possible to have some extra text in this copy of the categories box - I've copied the categories.php as categories-frontpage.php and pointed the index.php at it but then I'm stuck.

 

Does anyone have a php script that does a category overview but includes the category image and some brief text?

 

Cheers,

Phil

Link to comment
Share on other sites

I have managed to remove the "new products for month" box on the front screen and replace it with the top-level categories view (ie the same as the default 'Categories' box at top-left).

 

I'm trying to figure out how to do this...Can you point me in the right direction? What files do I edit? Thanks!

Link to comment
Share on other sites

I'm trying to figure out how to do this...Can you point me in the right direction? What files do I edit? Thanks!

 

Edit the main index.php and change the following:

 

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

 

to:

 

<td><?php include(DIR_WS_BOXES . 'categories.php'); ?></td>

 

Cheers,

Phil.

Link to comment
Share on other sites

  • 5 months later...

I got to of these lines in my index.php.

 

If i change the first nothing happens end if i change the second i get:

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/ccamstel/public_html/shop/includes/boxes/categories.php:13) in /home/ccamstel/public_html/shop/includes/boxes/categories.php on line 13

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...