Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Lost "Best Sellers Box"


Guest

Recommended Posts

I am sure this is simple, but I seem to have lost the "Best Sellers Box" from my home page

 

Is your admin configured to show Best Sellers ?

Admin --> Configuration --> Maximum Values --> Best Sellers

 

or - have you had zero orders ?

 

or - does your loop in /includes/column_right.php still look like this : (it displays best sellers on conditions being met :

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

 

 

also I would like to add Name & Address text above the log in boxes on the contact page but I am not sure how to do this.

Any help appreciated.

Regards

Dreaming Spires Oxford

Peter

 

 

add your text definitions and text to the /includes/languages/contact_us.php file like this :

define('CONTACT_ADDRESS', 'High St, Topsham, Devon');

 

then go to your contact_us.php file at the root, and dump in the text about here :

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td class="main"><?php echo CONTACT_ADDRESS; ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_NAME; ?></td>
		  </tr>
		  <?php echo tep_draw_hidden_field('xtra_headers', '[email protected]'); ?>

 

 

david

Link to comment
Share on other sites

David

Thanks for your help, I am attempting to do this modification, but I seem to have "lost" my contact page.

I.e. When I hit the contact button I return to a blank page.

Any ideas where I could look to rectify.

Regards

Peter

Link to comment
Share on other sites

David

Thanks for your help, I am attempting to do this modification, but I seem to have "lost" my contact page.

I.e. When I hit the contact button I return to a blank page.

Any ideas where I could look to rectify.

Regards

Peter

 

You have a pasring error in the code which will not allow the page to be loaded.

Post your file here, or turn on the error_reporting in your includes/application_top.php file :

error_reporting(E_ALL & ~E_NOTICE);

 

so the error is diaplyed to the browser.

 

david

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...