Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Column Left.. Column Right


slimeast

Recommended Posts

trying to remove some boxes in my main page and I stumbled on the knowledgebase article about removing/adding boxes at http://www.oscommerce.info/kb/66

 

They have stuff like...

<?php

require(DIR_WS_BOXES . 'categories.php');

require(DIR_WS_BOXES . 'manufacturers.php');

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

//require(DIR_WS_BOXES . 'my_new_box.php');

require(DIR_WS_BOXES . 'information.php');

?>

 

THE THING IS, MY COLUMN LEFT PAGE LOOKS LIKE THIS, NO REFERENCES TO ANYTHING LIKE THE ABOVE

WHAT GIVES?

 

 

<?php

/*

$Id: column_left.php,v 1.1.1.1 2004/03/04 23:40:37 ccwjr Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

$column_query = tep_db_query('select display_in_column as cfgcol, infobox_file_name as cfgtitle, infobox_display as cfgvalue, infobox_define as cfgkey, box_heading, box_template, box_heading_font_color from ' . TABLE_INFOBOX_CONFIGURATION . ' where template_id = ' . TEMPLATE_ID . ' and infobox_display = "yes" and display_in_column = "left" order by location');

while ($column = tep_db_fetch_array($column_query)) {

 

if ( file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes/' . $column['cfgtitle'])) {

define($column['cfgkey'],$column['box_heading']);

$infobox_define = $column['box_heading'];

$infobox_template = $column['box_template'];

$font_color = $column['box_heading_font_color'];

$infobox_class = $column['box_template'];

require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes/' . $column['cfgtitle']);

}

}

?>

Link to comment
Share on other sites

hi,

 

I don't know why your column left.php looks like that. This is my column_left.php code look like, you can compare it.

 

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

}

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

 

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

//require(DIR_WS_BOXES . 'information.php');

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'best_sellers.php');

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

require(DIR_WS_BOXES . 'reviews.php');

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

?>

Wanwan -- %_%_

Link to comment
Share on other sites

wow this seems like i have a bad version?

whats the deal can someone PLS shed some light on this?

 

Are you sure you download the correct osCommerce?

 

My is osCommerce 2003. I saw your code is osCommerce 2002

Wanwan -- %_%_

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...