Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding small gaps between categories


damo2576

Recommended Posts

Posted

Hi,

I'm running a site with the stock categorie box down the left hand side. My problems is that each category is too close to the category above/below so its a bit confusing to read.

I'd like to be able to add a small gap, not a whole carriage return.

Any ideas?

Thanks,

Damo

Posted

You could try this but backup the file first.

 

catalog/includes/boxes/categories.php

 

 ? ?$categories_string .= '</a>';

? ?if (SHOW_COUNTS == 'true') {
? ? ?$products_in_category = tep_count_products_in_category($counter);
? ? ?if ($products_in_category > 0) {
? ? ? ?$categories_string .= ' (' . $products_in_category . ')';
? ? ?}
? ?}

? ?$categories_string .= '<br>' . tep_draw_separator('pixel_trans.gif', '90%', '6');

? ?if ($tree[$counter]['next_id'] != false) {
? ? ?tep_show_category($tree[$counter]['next_id']);
? ?}
?}
?>
<!-- categories //-->

 

the change is this bit

$categories_string .= '<br>';

 

changes to this with the addition of a seperator

$categories_string .= '<br>' . tep_draw_separator('pixel_trans.gif', '90%', '6');

The height of seperation can be altered by changing the value 6 to a higher or lower value

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...