View Single Post
  #1  
Old 11-09-2011, 07:27 AM
 
jvolvovski jvolvovski is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 46
 

Default Parent Category ID on Search Page (products_t.tpl)

Hi,
I'm trying to retrieve a parent category id for products on the search results page.
There doesn't seem to be any variables that refer to a category name/id/etc.

Is there a way for me to create a new variable?

I'm using this for the category pages:
{if $current_category.parentid eq 249 || $cat eq 249}{else}{/if}
and would want to recreate this same structure on the search page.

Thanks!
Jenny
__________________
Version 4.3.2
Reply With Quote