Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent Help Pleeeeeeeeeeeeeeeease


HaggisBoy

Recommended Posts

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

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

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

Archived

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

×
×
  • Create New...