View Single Post
  #5  
Old 07-25-2012, 01:23 PM
 
kmjperformance kmjperformance is offline
 

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

Talking Re: Add Related Category's Icon to SmartSearch results

OK. Figured it out. Really not that hard.

Within the section that starts
Code:
{if $related_categories}

Change
Code:
<a href="home.php?cat={$related_categories[rc].categoryid}">{$related_categories[rc].category}</a>

to
Code:
<a href="home.php?cat={$related_categories[rc].categoryid}"><img src="{$xcart_web_dir}/image.php?id={$related_categories[rc].categoryid}&amp;type=C" alt="{$related_categories[rc].category|escape}" /><br />{$related_categories[rc].category}</a>


Now, I also got rid of the <ul> and made it a grid format copying section info from the manufacturer_categories template.
__________________

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