Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change the Categories width


dabbuhl

Recommended Posts

Posted

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?

Posted

/includes/application_top.php

 

// customization for the design layout
 define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)00

  • 6 months later...
Posted

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

Posted

unless you changed something, the both width should change. You can show us link to the page so that we see cats and make better solution...

Posted

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

  • 3 months later...
Posted

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)

Archived

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

×
×
  • Create New...