Guest Posted September 8, 2003 Posted September 8, 2003 Hi I'm new to osCommerce and PHP but experienced in HTML and various other scripting and programming languages. I want to modify the layout of my install of osCommerce so that it matches the layout of our website. I've installed osCommerce-2.2ms2 to a test server running Netware 6.5. PHP and MySQL appear to be working correctly. The "catalog" folder is sitting directly below the document root of the site. I've followed the installation instructions and the default install seems to be running correctly. I thought that I'd start by editing column_left.php to remove the "Manufacturers" and "Quick find" boxes. I've searched the forums and it seems that this should be straightforward. I've commented out the appropriate bits in column_left.php but the page layout isn't changing. :? Snipped from my updated column_left.php... ******************************** if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } // if ((USE_CACHE == 'true') && empty($SID)) { // echo tep_cache_manufacturers_box(); // } else { // include(DIR_WS_BOXES . 'manufacturers.php'); // } require(DIR_WS_BOXES . 'whats_new.php'); // require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); ******************************** I've tried refreshing the page, closing down my browser (IE) and opening the page again, emptying my browser cache, using another browser (Opera) and every time I still get the "Manufacturers" and "Quick Find" boxes on the left of my page. I've also tried commenting out the "Language" and "Currency" boxes in column_right.php and again the change isn't being picked up. Have I understood correctly what needs to be done to remove the above mentioned items from column_left.php and column_right.php? If not, please let me know what to do. If I have made the appropriate changes to column_left.php and column_right.php, can anyone suggest why they aren't being picked up? Thanks Justine
kagg Posted September 8, 2003 Posted September 8, 2003 Try the following through admin control panel: Admin -> Tools -> Cache Control -> Click the last Action link to reset cache for the boxes modified.
Guest Posted September 8, 2003 Posted September 8, 2003 Try the following through admin control panel: Admin -> Tools -> Cache Control -> Click the last Action link to reset cache for the boxes modified. Thanks for this suggestion. When I checked "Cache Control", I found that this wasn't properly configured and I couldn't do anything on this screen (essentially nothing was listed). So, I went to Configuration -> Cache and set up the cache correctly. Now when I go to Admin -> Tools -> Cache Control there are entries for "Categories box", "Manufacturers box" and "Also Purchased Module". I have clicked on the "Reset" icon in the Action column for each one, but it doesn't appear to have solved my problem. The boxes that I thought I had "removed" still appear on the page even when I refresh it. One thing that might be relevant - next to each of "Categories box", "Manufacturers box" and "Also Purchased Module" (in the "date created" column) it says "File does not exist" - is this a problem and if so, what should I do to fix it? Thanks Justine
kagg Posted September 8, 2003 Posted September 8, 2003 URL of the site may help in understanding the problem.
Jared Waites Posted September 8, 2003 Posted September 8, 2003 or just taking them completey out, instead of trying to comment them...that's what I did. - Jared
Guest Posted September 8, 2003 Posted September 8, 2003 Kagg and Jared Thanks for your replies. I have managed to figure out the cause of the problem. For some reason my Apache/PHP setup is caching PHP pages. If I take Apache down and up the changes to the pages are picked up straightaway. So, it's not a problem with osCommerce. Don't know if it is simply a matter of sorting out something standard in my Apache or PHP configuration, or whether it relates to the fact that I am running this on Netware. Either way, I will chase this up in the Netware forums. Thanks again for your help, I appreciate your prompt and helpful suggestions. Regards Justine
Recommended Posts
Archived
This topic is now archived and is closed to further replies.