Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a gap between 'catagory' and 'search' info boxes..


Guest

Recommended Posts

/catalog/includes/column_left.php

 

Find:

 

  require(DIR_WS_BOXES . 'search.php');

Replace with:

 

  echo '<tr><td>';
 echo '<img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10">';
 echo '</td></tr>';
 require(DIR_WS_BOXES . 'search.php');

In the code I posted, change this number here:

 

height="10"

 

To suit your requirements. It's pixels.

 

BACKUP THE FILE BEFORE EDITING.

 

You break it - You bought it...

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

The new code should be inserted JUST BEFORE this code:

 

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

(The backup rule still applies)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

thank you so much jim!

 

dont suppose you know how to add weights to different attribrutes?

 

I sell different sized cards and need to give each size a weight, but all i can see is one weight entry field for the product its self, not for each size on the drop down menu.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...