Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Wierd catagory layout problem


Recommended Posts

I am having a strange layout problem with on of the catagories on a site.

The catagory images are breaking un evenly. So I have 2 images above 4 images. All the other catagory pages are fine and even like 3 above three or 2 above two. What could be causing this and how can I fix it. I tried adjusting the layout on the index page but couldn't seen to get it right. Any advice would be appreciated.

Here's the page


Pieces of Argentina



Shelby <_<

Link to comment
Share on other sites

Ok so I have found where the max number of catagories is set in the index.php.

 $number_of_categories = tep_db_num_rows($categories_query);

   $rows = 1;
   while ($categories = tep_db_fetch_array($categories_query)) {
     $cPath_new = tep_get_path($categories['categories_id']);
     $width = (int)(3 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
     echo '                <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>'  . '</a></td>' . "\n";
     if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
       echo '              </tr>' . "\n";
       echo '              <tr>' . "\n";


Can Ichange this to fix this problem, confused



Link to comment
Share on other sites


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

  • Create New...