Guest Posted February 19, 2003 Share Posted February 19, 2003 I'm using OS Commerce to develop the "selling" part of my site but I really like the look of it and would like to use the style throughout my current site. I would like to know how the Categories menu is formed so I can do a similar thing for my current pages. ie. I'd like to have a menu system that looks like below which has my normal links in instead of my shopping links. I've had a look through OSC Dox but can't seem to find anything, can someone point me in the right direction please? Thanks in advance Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2003 Share Posted February 19, 2003 The specifications and process for how an infobox is built comes from catalog/includes/classes/boxes.php. The Categories Infobox is created from the catalog/include/boxes/categories.php file using the above specs. Hope this helps. -R Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2003 Share Posted February 19, 2003 Thanks for that. I can see how the boxes are made up now but the categories.php file confuses me. Am I right in thinking that I need to create a database with a list of links in it (see below) For example ID LinkName link 1 | About Us | aboutus.html 2 | Contact Us | contactus.html 3 | Enter Shop | catalog/default.php Then create the HTML file for the main page and have a PHP bit in it that gets the data from the database to create the menu? I think I'm in over my head here, anyone care to help please? :) Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2003 Share Posted February 19, 2003 Categories.php is different than most InfoBoxes that happen to contain links. Categories.php uses an advanced search function to establish what categories, subcategories and Products. If you have seen reference to $cpath, that is Category Path. What you are trying to do is very similar to the Information Infobox. Take a look at catalog/includes/boxes/information.php to see the Information Infobox code. You will see that you don't have to touch the database to accomplish what you want. Hope this helps. Good Luck. -R Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2003 Share Posted February 20, 2003 Thanks again, I've just found the bit in OSC Dox which explains the information.php and it looks like I could work my way through that. I'll have a read through it and post back with my results Cheers! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.