Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change the Categories width


dabbuhl

Recommended Posts

I am adding product in my store and some items have very long names. I don't like the fact that the categories section is a default size. I need about 8 more spaces to make all items fit on one line each. Is there a way to change the default size of all the items on the left side?

Link to comment
Share on other sites

  • 6 months later...

I have the same problem.

I tried changing the BOX_WIDTH but the change occured only to the right side of infoboxes...not to the Categories Box.

 

How to i increase the width of Categories Box in order words to fit in correctly??

Link to comment
Share on other sites

I have used a contribution that adds bullets (arrows) to Categories list. This is the only change i've made.

 

 // BOF: Add Bullet Images v1.2 FIXED by ramindiba ----dibacommerce.com
$products_in_category = tep_count_products_in_category($counter);
if (tep_has_category_subcategories($counter)) {
		if (isset($cPath_array) && in_array($counter, $cPath_array)) {
	  $categories_string .= '<img src="images/cat_arrow_down.gif" align="absmiddle"> ';
	} else {
	  $categories_string .= '<img src="images/cat_arrow_right.gif" align="absmiddle"> ';
	}
	} else if ($tree[$counter]['level'] == 0 and $products_in_category >= 0) {
	  $categories_string .= '<img src="images/cat_arrow_right.gif" align="absmiddle"> ';
   } else {
		$categories_string .= '<img src="images/cat_arrow_other.gif" align="absmiddle"> ';
	  }

// EOF: Add Bullet Images v1.2

Link to comment
Share on other sites

  • 3 months later...

I followed the instructions and I'm still having problems. My categories section is also very crunched in. Here is my site: www.stroller-roller.com/osc. Here is the code I have under application_top.php:

 

// customization for the design layout

define('BOX_WIDTH_LEFT', '211'); // how wide the boxes should be in pixels (default: 125)

define('BOX_WIDTH_CONT', '478'); // how wide the boxes should be in pixels (default: 125)

define('BOX_WIDTH_CONT_1', '335'); // how wide the boxes should be in pixels (default: 125)

define('BOX_WIDTH_RIGHT', '0'); // how wide the boxes should be in pixels (default: 125)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...