CTre Posted November 20, 2006 Posted November 20, 2006 I've tried this page http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/66 but I'm having no luck adding boxes. Can anybody assist?
CTre Posted November 20, 2006 Author Posted November 20, 2006 I'm doing everything at that help site but no new boxes are showing up. I'm even commenting languages and currencies boxes to remove them and I can't even do that. Here is my store http://www.yourhoodgear.com/store
MSP Posted November 20, 2006 Posted November 20, 2006 it sounds like the files are not being uploaded properly? how are you uploading the altered files?
CTre Posted November 20, 2006 Author Posted November 20, 2006 Here is my column_left.php file in /includes The help_section box is what I'm trying to add.. I really dont even want manufactuers either.. But I can't find a way to remove it. Thanks <?php /* $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_help_section_box(); } else { include(DIR_WS_BOXES . 'help_section.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } } require(DIR_WS_BOXES . 'categories.php'); //require(DIR_WS_BOXES . 'manufacturers.php') require(DIR_WS_BOXES . 'help_section.php require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); ?>
jdvb Posted November 21, 2006 Posted November 21, 2006 for your manufacturers you got that in double: <?php /* $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_help_section_box(); } else { include(DIR_WS_BOXES . 'help_section.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } } require(DIR_WS_BOXES . 'categories.php'); //require(DIR_WS_BOXES . 'manufacturers.php') require(DIR_WS_BOXES . 'help_section.php require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); ?> to remove that change it to the folowing: <?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'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_help_section_box(); } else { include(DIR_WS_BOXES . 'help_section.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'); ?> now the question is if help_section.php is cached. else you shoud make the help_section: # if ((USE_CACHE == 'true') && empty($SID)) { # echo tep_cache_help_section_box(); # } else { include(DIR_WS_BOXES . 'help_section.php'); # } if it still does not show, then you should look either if it is uploaded correctly or if the help_section.php generates any output. If the manufacturers box is gone, then this file is uploaded correctly, if the help_section does not show then, you should look at the help_section.php. I do not have a file called help_section.php in the includes/boxes directory. If is does not show, try posting the code form that file here
CTre Posted November 21, 2006 Author Posted November 21, 2006 to remove that change it to the folowing: <?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'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_help_section_box(); } else { include(DIR_WS_BOXES . 'help_section.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'); ?> if it still does not show, then you should look either if it is uploaded correctly or if the help_section.php generates any output. If the manufacturers box is gone, then this file is uploaded correctly, if the help_section does not show then, you should look at the help_section.php. I do not have a file called help_section.php in the includes/boxes directory. If is does not show, try posting the code form that file here I changed it to the above code and the manufacturer box is still there, and no sign of the help section.. ARR!
jdvb Posted November 21, 2006 Posted November 21, 2006 then do look at the ftp, perhaps delete the file alltogether. see that it went missing (error online) then re-upload it and see if the manufacturers box is still there.
CTre Posted November 21, 2006 Author Posted November 21, 2006 thanks! you helped me figure out my problem.. all the boxes are in my header.php and column_left.php and column_right.php dont even really matter.. When I deleted them I didn't get a error.. the site stayed the same..so I was like... :o Now I'ma try to add a box to the header.php in the spot where the manufactuer box is.. thanks for the help
Recommended Posts
Archived
This topic is now archived and is closed to further replies.