Guest Posted May 20, 2011 Share Posted May 20, 2011 hello, I want to show ONLY on sub category (images & links) on front page just below TITLE and above products new. Here is the site: http://www.stavropoulos.info/index.php So, I would like to show the categories in BRANDS on home page, how is this possible? anyone? thank you Link to comment Share on other sites More sharing options...
Guest Posted May 20, 2011 Share Posted May 20, 2011 Any homo sapien? (please) ;-) Link to comment Share on other sites More sharing options...
multimixer Posted May 20, 2011 Share Posted May 20, 2011 What version do you use re pano? My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2011 Share Posted May 21, 2011 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 More sharing options...
multimixer Posted May 21, 2011 Share Posted May 21, 2011 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); My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2011 Share Posted May 21, 2011 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 More sharing options...
multimixer Posted May 21, 2011 Share Posted May 21, 2011 I;m sorry, but adding an id into application_top.php will make subcategories to display on the front page? I don't think this make any sense ! However, if it works for you, then it is ok My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
multimixer Posted May 21, 2011 Share Posted May 21, 2011 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 .... My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2011 Share Posted May 21, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.