Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help!


MysticBlues

Recommended Posts

look in catalog/includes/column_right. Something probably screwed up in there...

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Link to comment
Share on other sites

<?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

 Shoppe Enhancement Controller - Copyright (c) 2003 WebMakers.com
 Linda McGrath - [email protected]
*/
?>
<?php
// WebMakers.com Added: Column Control
if (COLUMN_RIGHT_ON=='1') {
?>
<tr><td align="top"><table width="<?php echo BOX_WIDTH_RIGHT; ?>" class="ColumnRight"><tr class="ColumnRight"><td align="top" class="ColumnRight">
<?php

// WebMakers.com Added: Add a Login/Welcome Box
 include(DIR_WS_BOXES . 'loginbox.php');

// WebMakers.com Added: Only show shopping cart when there is something in it.
 if ($cart->count_contents() >= 1) {
   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');
 }

// WebMakers.com Added: Poll Booth
// disabled for re-write
//    require(DIR_WS_BOXES . 'polls.php');

// WebMakers.com Added: Column Controll
?>
</td></tr></table></td></tr>
<?php
} // column right on
?>

Link to comment
Share on other sites

I'd go back throught the instructions for the contrib you just installed and try to find out what might have happened to the languages infobox, or make sure the file is in the correct directory.

 

column_right looks good though.

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Link to comment
Share on other sites

I had a database error when I installed this and subsequently removed and reinstalled the original database along with contrib data base. I had to go back into admin and set all settings up all over again. Is it possible I did something in admin to turn this off?

Link to comment
Share on other sites

otherwise it's possible the error is here: admin\includes\boxes\catalog

 

<?php
/*
 $Id: catalog.php,v 1.21 2003/07/09 01:18:53 hpdl Exp $

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

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- catalog //-->
         <tr>
           <td>
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_CATALOG,
                    'link'  => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'));

// WebMakers.com Added: Featured Products - WYSIWYG HTML
 if ($selected_box == 'catalog') {
   $contents[] = array('text'  =>
//Admin begin
//                                   '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .
//                                   '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' .
//                                   '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' .
//                                   '<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' .
//                                   '<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' .
//                                   '<a href="' . tep_href_link(FILENAME_FEATURED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_FEATURED . '</a><br>' .
//                                   '<a href="' . tep_href_link(FILENAME_BESTSELLERS2, '', 'NONSSL') . '" class="menuBoxContentLink">' . 'Best Sellers' . '</a><br>' .
                                    '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>' .
                                  tep_admin_files_boxes(FILENAME_CATEGORIES, BOX_CATALOG_CATEGORIES_PRODUCTS) .
                                  tep_admin_files_boxes(FILENAME_PRODUCTS_ATTRIBUTES, BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES) .
                                  tep_admin_files_boxes(FILENAME_PRODUCTS_OPTIONS_NAME, BOX_CATALOG_PRODUCT_OPTIONS_NAME) .
                                  tep_admin_files_boxes(FILENAME_PRODUCTS_OPTIONS_VALUES, BOX_CATALOG_PRODUCT_OPTIONS_VALUES) .
                                  tep_admin_files_boxes(FILENAME_MANUFACTURERS, BOX_CATALOG_MANUFACTURERS) .
                                  tep_admin_files_boxes(FILENAME_REVIEWS, BOX_CATALOG_REVIEWS) .
                                  tep_admin_files_boxes(FILENAME_SPECIALS, BOX_CATALOG_SPECIALS) .
                                  tep_admin_files_boxes(FILENAME_PRODUCTS_EXPECTED, BOX_CATALOG_PRODUCTS_EXPECTED) .
                                  tep_admin_files_boxes(FILENAME_FEATURED, BOX_CATALOG_FEATURED) .
                                  // MaxiDVD Added Line For WYSIWYG HTML Area: BOF
                                  tep_admin_files_boxes(FILENAME_DEFINE_MAINPAGE, BOX_CATALOG_DEFINE_MAINPAGE) .
                                  // MaxiDVD Added Line For WYSIWYG HTML Area: EOF

                                  // WebMakers.com Added: info boxes
                                  tep_admin_files_boxes(FILENAME_DEFINE_ABOUT_US, BOX_CATALOG_DEFINE_ABOUT_US) .
                                  tep_admin_files_boxes(FILENAME_DEFINE_SHIPPING, BOX_CATALOG_DEFINE_SHIPPING) .
                                  tep_admin_files_boxes(FILENAME_DEFINE_PRIVACY, BOX_CATALOG_DEFINE_PRIVACY) .
                                  tep_admin_files_boxes(FILENAME_DEFINE_CONDITIONS, BOX_CATALOG_DEFINE_CONDITIONS) .
                                  tep_admin_files_boxes(FILENAME_DEFINE_CONTACT_US, BOX_CATALOG_DEFINE_CONTACT_US) .

                                  // WebMakers.com Added: Image Box
                                  tep_admin_files_boxes(FILENAME_IMAGE_BOX, BOX_CATALOG_IMAGE_BOX)
                                  );
//Admin end
 }

 $box = new box;
 echo $box->menuBox($heading, $contents);
?>
           </td>
         </tr>
<!-- catalog_eof //-->

Link to comment
Share on other sites

I see you got it back by the time I woke up, what did you have to change? In case others have this same problem...

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...