Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A sub Category on front page


Guest

Recommended Posts

What version do you use re pano?

 

 

HEllo ;-)

 

2.3.1 file, lol, mono enas ellinas irthe na me sosi! ;-)

Link to comment
Share on other sites

What I would do is,

 

1) to create a new module, similar to the "new products" module (includes/modules/new_products.php), I would name it anything, eg panos.php

 

2) in this new module to query the database to select the categories_id, categories_image from TABLE_CATEGORIES where parent_id = whatever the category id of your category "brands" is. Additional I can take the categories_name from table CATEGORIES_DESCRIPTION if I think I'll need that. You can read more about this here

 

3) for the display I could use a unordered list format, but to make it faster I would just use the existing table layout of the new products module, adding into the <td> just the image

 

4) Finally I would go to my index,php and include there the new module in the same way it is done for new products, for example like this

   include(DIR_WS_MODULES . 'panos.php');
   include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);
   include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);

Link to comment
Share on other sites

Thank you for your time Multiplexer, appreciate it, however, all you need to do is:

 

goto application_top.php and find: $cPath = '';

 

and insert the id

 

Hope this helps anyone in the future.

 

Panos

Link to comment
Share on other sites

EDIT: Just now understood what you mean. The issue is, that in this case you don't have an independent "home" page any more that you can modify and change as you like, if this is ok for you ....

 

you are right, you dont really have a home page after this, but the issue here is that it can be done with very little coding. THanks again for your resposnce ;-)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...