Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to disable Osc from showing this picture...


surfking

Recommended Posts

Ok I am trying to disable the category picture that shows up when you go into a category that branches off into other categories. To show you what I mean go to my online store at http://www.hotpeds.com/catalog/default.php and click Go-ped Appearance. From there click one of the categories. You will see that it still shows the categories main picture on the right hand side. How do I get rid of that? I probably could have figured it out but I thought someone else has most likely came across the same thing and could save me a good hour. Thanks in advance.

Link to comment
Share on other sites

WOW! Your store is amazing!

Anyway, here's what to do - In default.php, find this code and remove the image:

 

while ($categories = tep_db_fetch_array($categories_query)) {

$rows++;

$cPath_new = tep_get_path($categories['categories_id']);

$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';

echo '

<td align="center" class="smallText" style="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";

if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != tep_db_num_rows($categories_query))) {

echo ' </tr>' . "n";

echo ' <tr>' . "n";

}

}

?>

Link to comment
Share on other sites

Thanks for the comment. Quick question though, do I just delete the whole

<td align="center" class="smallText" style="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>

 

When I deleted the whole thing it removed my category, but I don't think that is what you were trying to say. Sorry php is not my strong point at all... :(

Link to comment
Share on other sites

To bump a post, you should look at your question and ask yourself, "Is there more information I can give?" If not, ask yourself if there is something more that you can try. If not, you probably should try rephrasing the question, as it is likely that no one understood what you wanted.

 

In this case, I read your question but did not understand it. What happens when you delete that code block that you do not want to happen? How do you want things to act differently? What were your trying to get to happen? Did it accomplish that but do something else that you didn't want? What? Or is there another issue?

 

Good luck,

Matt

Link to comment
Share on other sites

Ok I will describe it in more depth this time. Goto http://www.hotpeds.com and click "online shop" at the top

 

From there click "Go-ped Appearance"

 

Then Click "Aftermarket Gas Caps"

 

Ok when your at this page you will still see the picture of the silver Gas Cap. I don't want that to be there any more, however I still want the Ada Gas Caps, Engine Trix Gas Caps, and Hollywood Gas Caps to be there. Sorry about not explaining it right, once I re-read it I saw how it was confusing.

 

Thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...