comfyzone.com Posted January 10, 2009 Share Posted January 10, 2009 Hello everyone... i am new to all this, so please forgive me if i am not quite clear to what i need help with... here we go.. i have removed the Manufacturers info box from my website and now i want to put it back on.. the problem is that all the files are their but am not sure which file and which line i have edited to make it dispear from my site.. Please check my site so you know what i mean..www.comfyzone.com can someone please help me? Thank you Link to comment Share on other sites More sharing options...
germ Posted January 10, 2009 Share Posted January 10, 2009 Stock osC has it in /includes/column_left.php <?php /* $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } [color="#FF0000"][b] if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); }[/b][/color] require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
comfyzone.com Posted January 10, 2009 Author Share Posted January 10, 2009 thank you for quick reply, but this did not work, this file is fine, it is exactly the way you have written.. any other suggestions? i was thinking, why don't i just delete all the filese related to manufacturer info box and then add the files back in by downloading from os-commerce contribution site? what do you think? Link to comment Share on other sites More sharing options...
germ Posted January 10, 2009 Share Posted January 10, 2009 You didn't do it right. :huh: You now have two information boxes instead. :o If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
comfyzone.com Posted January 10, 2009 Author Share Posted January 10, 2009 i have took it off, i was just testing it...but manufacturer would not come on.. Link to comment Share on other sites More sharing options...
germ Posted January 10, 2009 Share Posted January 10, 2009 Consult your template supplier. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
comfyzone.com Posted January 10, 2009 Author Share Posted January 10, 2009 Consult your template supplier. i would but he has dispeared...so am stuck.. Link to comment Share on other sites More sharing options...
comfyzone.com Posted January 11, 2009 Author Share Posted January 11, 2009 can anyone please help me?? i would realy appreciate it... thank you Link to comment Share on other sites More sharing options...
germ Posted January 11, 2009 Share Posted January 11, 2009 So put the code back in there. In yoiur admin set "Use Cache" to false. Save it. Then view the site. Any better? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
satish Posted January 11, 2009 Share Posted January 11, 2009 boxes are included in oscommerce bu placing an include link in the col left file or col right file. Plus by checkingthat a code for boxes is there in includes/boxes folder. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
germ Posted January 12, 2009 Share Posted January 12, 2009 When you want to "remove" code that does something it's always best to leave it there, but render it ineffective. That way if you wish to reactivate it at a later date the code is still there. In programmers terms it's called "commenting out" the code. For instance this block of code in question: if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } Two ways to render it ineffective but leave the code intact: /* if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } */ Or // if ((USE_CACHE == 'true') && empty($SID)) { // echo tep_cache_manufacturers_box(); // } else { // include(DIR_WS_BOXES . 'manufacturers.php'); // } I usually use the // method for one or maybe two lines of code, and the /* */ method for longer blocks of code, but either works. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.