View Single Post
  #1  
Old 07-23-2012, 11:35 AM
 
kmjperformance kmjperformance is offline
 

Advanced Member
  
Join Date: Jul 2008
Location: Iowa
Posts: 42
 

Question Add Related Category's Icon to SmartSearch results

I'm trying to modify SmartSearch to display a grid layout of related categories with their respective category icon.

I've figured out what file to edit: /common_files/modules/Smart_Search/smart_search.tpl
and where to put the code: below
Code:
{section name=rc loop=$related_categories max=$rcmax}

But I don't know how to get the url for the category icon. I tried this code that I found in /common_files/customer/main/subcategories_t.tpl
Code:
{get_category_image_url}
but it doesn't seem to work on that page.

Any help would be much appreciated! Once I figure it out, I'll post what I've done. I feel this is a superior way to display the related categories as most people's eyes are drawn to images rather than text.

THANKS!
__________________

X-Cart 4.4.5
PHP 5.3.14-1
MySQL 5.0.51
Linux + Apache
Mods:
AlteredCart SmartSearch w/ AJAX Predictive Search w/ Extras Add-On v2, BuyTogether, Checkout One, OnSale
********* PowerFilter
WebsiteCM CDSEOPro
Phpmagicscripts Reviews-Controller
CFL Systems Products Page Layout, System Messages mod
Custom work by CFLSystems
Custom work by us
Reply With Quote