Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

customizing template


Guest

Recommended Posts

I'd like to move the categories section from column_left.php to column_right.php. I was able to move all the other sections (that I wanted) over to the right column, but for some reason the code for that categories box is being very stubborn:

 

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

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

You can check out my store here.

 

I've come up null on all my searches, can someone tell me what's going on?

 

 

Bro

Link to comment
Share on other sites

The modules in the left and right columns (unless you have moved them or are using a template that has them hardcoded elsewhere) are in /includes/column_right.php and /includes/column_left.php. To remove the information box in column_right.php just comment out the call to that file - or remove it entirely. (you're looking for the include function that calls information.php)

Link to comment
Share on other sites

The modules in the left and right columns (unless you have moved them or are using a template that has them hardcoded elsewhere) are in /includes/column_right.php and /includes/column_left.php. To remove the information box in column_right.php just comment out the call to that file - or remove it entirely. (you're looking for the include function that calls information.php)

 

 

This is my column_right.php:

 

<?php
/*
 $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require(DIR_WS_BOXES . 'search.php');	

 require(DIR_WS_BOXES . 'shopping_cart.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');
 }

 if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
 }
?>

 

I don't see a call to information.php. That's why I'm so baffled.

Link to comment
Share on other sites

Another day and another 300 trial and error combinations exhausted. I'm beginning to think the complete installation is screwed up.

 

It doesn't make any sense that my column_right.php would not include a call to information.php when the information box clearly shows up on the index page of my site. Also, it doesnt make sense to me that when I copy and paste those 5 lines of code from column_left.php to column_right.php to move the categories.php box to the right side, the whole thing breaks.

 

Bro

Link to comment
Share on other sites

...(you're looking for the include function that calls information.php)

 

 

Issue solved! So noone else is confused by the incorrect information posted above, the call is actually to the languages.php file.

 

So if anyone else would like to move the contents of the "information" box to the footer of their site, you need to remove the following code from the bottom of column_right.php:

 

 

 if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
 }

 

Still working on moving the categories box. Feel free to post a suggestion.

Link to comment
Share on other sites

BAM!!! 2 for 2 this morning!

 

The categories.php box can be moved to the column_right.php simply by copy and pasting the code mentioned above from column_left to column_right, BUT you must delete the code from column_left completely or it will produce an error. In other words, there can not be 2 total instances of that box on the page at the same time.

 

 

Bro

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...