Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help me with Categories


Guest

Recommended Posts

Hi everybody I need help with removing the n's from my Categories, how do you do that the page is below so you can have a look at what I mean.

 

My Webpage

 

 

So if someone could help me that would be nice, there must be someone out there who can help me with removing the n's because they look funny in there.

Link to comment
Share on other sites

If you are using file manager in admin section for working with files , so do not do it

 

it is making trouble as you see

 

the problem in index.php file in your catalog directory

 

find this part

$rows = 0;
100      while ($categories = tep_db_fetch_array($categories_query)) {
101        $rows++;
102        $cPath_new = tep_get_path($categories['categories_id']);
103        $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
104        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>' . $categories['categories_name'] . '</a></td>' . "\n";
105        if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
106          echo '              </tr>' . "\n";
107          echo '              <tr>' . "\n";
108        }
109      }

 

and place \ before n

Link to comment
Share on other sites

Thanks for that it did the job, it was that easy thanks a lot do you know how to add boxs in with the products like in the page below where it got Available Options: the sizes for the T-shirt, like the page below.

Webpage

 

 

 

 

 

 

 

If you are using file manager in admin section for working with files , so do not do it

 

it is making trouble as you see

 

the problem in index.php file in your catalog directory

 

find this part

$rows = 0;
100 ? ? ?while ($categories = tep_db_fetch_array($categories_query)) {
101 ? ? ? ?$rows++;
102 ? ? ? ?$cPath_new = tep_get_path($categories['categories_id']);
103 ? ? ? ?$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
104 ? ? ? ?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>' . $categories['categories_name'] . '</a></td>' . "\n";
105 ? ? ? ?if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
106 ? ? ? ? ?echo ' ? ? ? ? ? ? ?</tr>' . "\n";
107 ? ? ? ? ?echo ' ? ? ? ? ? ? ?<tr>' . "\n";
108 ? ? ? ?}
109 ? ? ?}

 

and place \ before n

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...