HaggisBoy Posted March 6, 2003 Share Posted March 6, 2003 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 More sharing options...
mattice Posted March 6, 2003 Share Posted March 6, 2003 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 More sharing options...
HaggisBoy Posted March 6, 2003 Author Share Posted March 6, 2003 Thanks Mattice but unfortunately, I am pretty much a beginner. I am learning quickly but have very little idea as to how to implement what you suggest. :( Link to comment Share on other sites More sharing options...
mattice Posted March 6, 2003 Share Posted March 6, 2003 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 More sharing options...
HaggisBoy Posted March 6, 2003 Author Share Posted March 6, 2003 Just saw another post by you on the same subject... :shock: :wink: can't blame a guy for trying! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.