View Single Post
  #10  
Old 07-27-2005, 06:38 AM
 
RBasil RBasil is offline
 

Newbie
  
Join Date: May 2005
Posts: 4
 

Default

Quote:
Originally Posted by dsparks
The easy way:

1) Add a record to the table "xcart_config" as follows:

Code:
insert into xcart_config (name,`comment`,value,category,orderby,`type`,defvalue) VALUES ('show_category_image','Show category image','Y','Appearance','1300','checkbox','Y')

2) Modify the file "skin1/customer/main/subcategories.tpl"

Around line 17, find the line:

Code:
{if $tmp} [img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img] {/if}

and change it to:

Code:
{if $tmp and $config.Appearance.show_category_image eq "Y"} [img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img] {/if}

Worked great in 4.013 Pro Thanks!
__________________
---
RBasil
X-Cart 4.0.13 Pro
Reply With Quote