Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Double Links for subcategories on parent category page


propong

Recommended Posts

Pretty much what the topic says. Heres an example:

 

http://www.hqvaporizers.com/vaporizers-price-c-28.html

 

Not sure how to change it so there is only 1 link for each sub category at the top of the page there. No idea why its two right now. Looks stupid.

 

Thanks!

 

While I have someone's attention, how do I make it so that the subcategories are visible under the main category on the nav bar on all pages? Right now I have to click on the category and be on the category page to see the sub categories in the nav bar but I'd like them to always be there.

Link to comment
Share on other sites

Those are not double links.

 

The first one is suppose to be an image. No image exists so it is outputting the alt text.

 

The second one is the actual text link.

 

You can either add images for the subcategories or remove the call for the image.

 

If removing the call for the image then find in catalog/index.php

     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";

Change to

     //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";
     echo '        <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a></td>' . "\n";

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...