Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Sending out an SOS, to the world"


HaggisBoy

Recommended Posts

Hi all

 

Hope someone can help; I have got a bit of a problem that, while not vital to have fixed (there are ways around it), it would be absolutely excellent to be able to sort.

 

What I am trying to do is :

 

INCLUDE THE CATEGORY NAME in the search results table

INCLUDE THE CATEGORY NAME in the product info page

INCLUDE THE CATEGORY NAME in the new arrivals/featured products boxes located on the front page

 

My site sells model planes and my categor is the AIRCRAFT TYPE.

 

At the moment, when I do a search for a product, it shows in the results table as :

 

MODEL........PRICE

566545........?12.95

 

But there is no aircraft type shown as this is the category. Is there an easy way of showing the category in this table????

 

Thanks!

Link to comment
Share on other sites

There is a function that takes a product_id and 'calculates' the category_id from it.. I have not looked but I think it is called tep_product_to_category() or something similar. You could call that in product_listing.php and have it display the category name as a link. It will use some resources though as it has to fetch it seperately for EACH returned result.

 

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

You have to start somewhere :D

Just saw another post by you on the same subject... :shock:

That had a good reference / answer to it with code examples by Linda.

 

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...