Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

move the categry listing to the right


ras

Recommended Posts

Posted

i need to move the category list to the right colomn and wats is there to the left instead the category

 

is this doeble ??

Posted

:rolleyes: Look in your catalog/includes folder for the column_left.php and column_right.php files. You can move items from one file to the other. If you want everything in column_left to list on the right and vice versa, just change the file names and the reference to the file name inside the file.

 

i need to move  the category list to the right colomn and wats is there to the left instead the category

 

is this doeble ??

Posted
:rolleyes: Look in your catalog/includes folder for the column_left.php and column_right.php files.  You can move items from one file to the other.  If you want everything in column_left to list on the right and vice versa, just change the file names and the reference to the file name inside the file.

 

i did as you sad

and copied this from the col_left to col _right

 

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_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

but now i have fatal error like this :

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/bestavri/public_html/play-a-racing-game/includes/boxes/categories.php:13) in /home/bestavri/public_html/play-a-racing-game/includes/boxes/categories.php on line 13

 

 

this is how it looks now (column_right)

 

<?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 © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

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 ((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_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.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');

}

 

?>

 

the red text was copied from the column_left

wats wrong here ?

Archived

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

×
×
  • Create New...