Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Having a problem with column_right.php... it's disapperaing!


Guest

Recommended Posts

Hi All,

 

I'm a newbee to all this, and find that I'm really enjoying OScommerce! BUT...

 

I have a problem and can't seem to find the answer on this forum.

 

My right column (which I assume is Column_right.php) shows up on my front page, and on one (and just one) sub-catagory of products I have, It is missing on all the others.

 

It was ok until I tried to remove the "review" box per instructions on the forum. Which worked. But then the column started to disappear.... So I restored all the files I had changed.. but the problem has not fixed.

 

:( I fear I have messed something else up.

Any hints on which files I need to fix and how to do it.

Thanks Everyone!

Michelle W

Link to comment
Share on other sites

in column_right.php did you simply remove this line ?

 

require(DIR_WS_BOXES . 'reviews.php');

 

??

 

Either way.. try uploading a backup of your column_right.php file

 

.. if you don't have a backup, this is from november with the reviews box removed

 

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

 }





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

   include(DIR_WS_BOXES . 'languages.php');

   include(DIR_WS_BOXES . 'currencies.php');

  

 }

?>

 

no warranty.. so backup your current copy ;)

 

-caz

Link to comment
Share on other sites

Hi Caz,

 

Thanks for the fast reply. I used your code for Column_right.php and it works to get rid of the reviews

 

But it still is missing from all the pages except the front page and 2 item pages are in a sub catagory. Funny thing is even the main catagory of the items that show the column don't have it.

 

I don't know if i might have messed up another file.

 

Do you think I could have messed up some different page? I made changes to info_product.php as well when i tried to remove the review code... but I replaced that changed one with my original one. (I hope I didn't mess that up backwards?)

 

Do you think I could have done that?

 

Thanks for helping and helping so fast!

Michelle W.

Link to comment
Share on other sites

Thanks for trying again Caz,

 

I'm combing thru both the file you sent me and my own to see what could be done to fix it.

 

Thanks for seeing that the problem was it wasn't disappearing but going to the bottom of the left hand side.

 

I'm going to search for that answer now.

 

:)

You're the best!

Michelle

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...