NayDreams Posted October 31, 2010 Posted October 31, 2010 Hi all...I'm new here so please bear with me if this seems elementary...I'm not a noob to PHP (I'm a web designer) but haven't ever used oscommerce before. I have a client who has an existing website that was apparently built with oscommerce using a template (sts?) I've been asked to simply "take down" one page...the reasoning is that there are items showing on the page that are not currently available and the client doesn't want customers to order them until this page can be revamped and updated. (The entire website is being rebuilt but we need to take this page down immediately) I was asked just to take the page down and put up an "under construction"-type message. After wading through the web of "includes" and pieces of templates and various PHP files that are used..I figured out that I wasn't going to be able to just simply change the content on that page. My next idea was just to remove the LINK for that page from the menu on the home page...if people can't link to it, then they won't place orders there....but I can't find any way to do THAT, either. I have not been able to isolate the file or section of code where the menu items for the home page are specified. I know that SOMEWHERE in all these files, there has to be a segment of code that tells what the list of menu items should be. I can look at the page source code in my browser and see the divs and links ...but when I look at the index.php, column_left.php, sts_column_left.php, categories.php, etc...I cannot find the code that controls this display. Are these items being created on the fly, somehow? What am I missing? I hope this makes sense....Can anyone help me figure out how to just remove a link on the front page, or at least tell me it's not possible so I can stop looking for a solution? Thanks!
burt Posted October 31, 2010 Posted October 31, 2010 You might want to provide the URL of the site and the URL of the page you are trying to remove.
NayDreams Posted October 31, 2010 Author Posted October 31, 2010 Thanks Burt, I considered that but I really can't because I don't have the client's consent... Basically the setup is this: I have the home page, and on it there's a side menu linking to the various pages. Two of these pages display catalog items that can be added to the shopping cart. The rest of the pages are just basic text content..."about us" and "contact"...that sort of thing. I've noticed that for the two pages that have catalog items, the links are "index" links... something like "index.php?cPath=21"...while the other pages have "information" links, like "information.php?info_id=6" etc. I have combed through the index.php and information.php pages, as well as the other files referenced on index.php and information.php (like column_left.php, application_top.php, etc) and the only thing I've found that correlates to cPath or info_id numbers is some code that tells how to define the breadcrumb: if ( $cpath == 22 ) { define('BREADCRUMB',"Order Gifts"); }... What I'm trying to do is make the "index.php?cPath=21" page just NOT DISPLAY at all. I either need to change what shows up on that page, or remove it from the menu altogether...but aside from those "breadcrumb" lines, I can't find ANYWHERE in all these files where it says what should BE on the page where "cPath=21", or that defines what shows in the menu. I need to find out where these links are being defined. Which file is it that tells the browser to create the "about us" and "contact" etc links? It's got to be part of a template somehow but I can't isolate it...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.