If you want to pull the categories_name ... you have to decide do you want to pull the name of the current categories_id categories_name or the master_categories_id categories_name ...
The difference is ...
In a Product Listing from the Categories navigation, there is a:
$current_category_id
variable for the categories_id ...
But, in a search, there isn't a $current_category_id so you would need to use the $master_categories_id ...
The function is in the functions_lookups.php file:
Code:
function zen_get_category_name($category_id, $fn_language_id) {
You might need to tweak the code a bit based on whether or not the $current_category_id exists and if not then you need to use the $master_categories_id ...
Bookmarks