Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I deleted my right column!


LASO IT

Recommended Posts

I was adding a module to my left column, but it didn't work correctly. I went to delete the left column, as I had the original one saved under a re-name. I accidentally clicked on the right column...and like an idiot deleted it. ARGH!

 

I restored my backup.....but! I didn't realize the whole site wasn't covered in the backups! Just the databases!!! ARGH!

 

How do I find a column_right.php file? Can anyone send me one?

~man....I'm such a noob.

Link to comment
Share on other sites

I was adding a module to my left column, but it didn't work correctly. I went to delete the left column, as I had the original one saved under a re-name. I accidentally clicked on the right column...and like an idiot deleted it. ARGH!

 

I restored my backup.....but! I didn't realize the whole site wasn't covered in the backups! Just the databases!!! ARGH!

 

How do I find a column_right.php file? Can anyone send me one?

 

includes/column_right.php

looks like file version is 1.17, I'm not real familiar with osC yet so I'm not sure if there are any changes,

I am using osC v2.2 RC1

<?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
*/
?>
<table border="0"cellspacing="0" cellpadding="0" class="box_width_right">
<tr><td><?php /*  echo tep_draw_separator('spacer.gif', '9', '1');  */ ?></td>
	<td width="100%">
		<table border="0" cellspacing="0" cellpadding="0">
			<tr><td></td></tr>
<?php

?>
		</table>
	</td>
</tr>
</table>

 

back up everything, its as easy as creating a second copy of the local files.

Link to comment
Share on other sites

Thanks, its at least got rid of the error message on the page.....

 

Does anyone have a column_right.php from version 1.15? My old one had the cart, and specials, and several other modules built into it.

~man....I'm such a noob.

Link to comment
Share on other sites

For anyone who stumbles across this in the future......

 

Here's the code I'm using for my right column:

 

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

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

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

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

~man....I'm such a noob.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...