Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Commenting Out Useless Boxes - Trouble


wumagic

Recommended Posts

I have edited my column_right.php file to remove the currencies and languages boxes along with the polls box, but they still appear, so I have even deleted the lines from the code and they are still appearing when I access my catalog... What is causing this? I am using the "Theme OSC" template system..

 

 

Below is my column_right.php code

 

<?php

/*

 $Id: column_right.php,v 1.1.1.1 2002/11/28 23:22:03 wilt Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/



 require(DIR_WS_BOXES . 'shopping_cart.php');



 if ($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 ($HTTP_GET_VARS['products_id']) {

   if (session_is_registered('customer_id')) {

     $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $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 ($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');

 }

?>

 

Are there any other files that I should look at to remove these boxes?

 

Thanks!

 

Wu-

Link to comment
Share on other sites

That should be it.

 

If you are using the Thema contrib, isn't there a column_right.php in the Thema folder?

 

Good Luck.

 

-R

Link to comment
Share on other sites

I'm not sure about the Thema folder location. Look through the documentation for that contrib and see if there is another column_right defined.

 

-R

Link to comment
Share on other sites

I found it, it was buried :-) and yes I found a column_right.php file for the particular template that I am using, I am going to edit and see what happens, ill post my results..

 

Thanks for waking me up :-)

Link to comment
Share on other sites

that was the ticket!!

 

FYI: if anyone is searching for the thema directory to edit a template that they are using it is located - /catalog/includes/classes/thema/

 

 

Thanks Again!

 

Wu-

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...