Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems Adding Boxes


CTre

Recommended Posts

Posted

it sounds like the files are not being uploaded properly? how are you uploading the altered files?

Posted

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');
?>

Posted

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

Posted
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!

Posted

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.

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...