HaggisBoy Posted March 4, 2003 Share Posted March 4, 2003 Greetings from Scotland I hope someone might be able to help me. What I am trying to do is get the CATEGORY NAME to show in the Search Results Table. I have done a search here for a whole range of different terms and can't find a solution to the problem. FURTHERMORE, I want to be able to add the CATEGORY NAME to the header in PRODUCT_INFO.PHP so it shows, for example, MODEL NAME CATEGORY If anyone can help me out, I would really appreciate it. Thanks and regards. Eddy Link to comment Share on other sites More sharing options...
mouflon Posted March 4, 2003 Share Posted March 4, 2003 This may be what you are looking for: http://www.oscommerce.com/community/contri...ions,191/page,3 Cheers Unexpect the Expected Link to comment Share on other sites More sharing options...
HaggisBoy Posted March 6, 2003 Author Share Posted March 6, 2003 Thanks but this isn't what I am looking for. When the search results table comes up, I need to show the CATEGORY in the table alongside the product name and price. Link to comment Share on other sites More sharing options...
mouflon Posted March 6, 2003 Share Posted March 6, 2003 Ahhhh - I see. This should work for you. Visit this thread: http://www.oscommerce.com/forums/viewtopic.php?t=35196 and create the tep_get_categories_name function. Then in product_listing.php wherever you would like to put the text, say beside the product_name, just do this: $category_text = tep_get_categories_name($cPath); $lc_text = ' '. $category_text . ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; I haven't tested this, but I think the concept works... Cheers Unexpect the Expected Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.