View Single Post
  #188  
Old 02-23-2007, 02:48 AM
 
obaluba2 obaluba2 is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 152
 

Default Re: Mod for subcategories in columns with descriptions and icons

Hey,

I'm using the same code as KarenTown but It just wont find my category images..

PHP Code:
{* $Idsubcategories.tpl,v 1.43.2.9 2006/06/27 08:22:01 svowl Exp $ *}
{if 
$active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}
{include 
file="modules/Bestsellers/bestsellers.tpl"}
{/if}
{if 
$active_modules.Special_Offers and $category_offers}
<
BR><BR>
{include 
file="modules/Special_Offers/customer/category_offers_short_list.tpl"}
{/if}
{if (
$navigation_page eq "")||($navigation_page eq "1")}{$current_category.description}<BR><BR>{/if}
{
capture name=dialog}
{
assign var="tmp" value="0"}
{
section name=cat_num loop=$subcategories}
{if 
$subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/
section}
{if 
$subcategories}
<
table cellspacing="5" width="100%" border="0">
<
tr>
{foreach 
from=$subcategories item=subcat}
{if 
$tmp is div by 3}
</
tr><tr><td colspan="3"></td></tr><tr valign="top">
{/if}
{ if 
$tmp and $first_subcat ne "Y" }
{
assign var="tmp" value=0}
{
assign var="first_subcat" value="Y"}
{/if}
<
td class="ColumnTitles" valign="top"><a title="{$subcat.description}href="home.php?cat={ $subcat.categoryid }"><img src="{if $subcat.icon_url}{$subcat.icon_url}{else}{$xcart_web_dir}/default_image.gif{/if}" alt="" align="middle" <br><left
<
font class="ItemsList">{ $subcat.category|escape }</font></a>
{if 
$config.Appearance.count_products eq "Y"}
 
{/if}
{
assign var="tmp" value=$tmp+1}
{/foreach}
</
table>
{/if}
{if 
$tmp and $products ne "" }
<
BR clear="left">
<
HR size="1" noshade>
{/if}
{if 
$products}
{if 
$sort_fields}
<
DIV align="right">{include file="main/search_sort_by.tpl" sort_fields=$sort_fields 
selected
=$search_prefilled.sort_field direction=$search_prefilled.sort_direction 
url
="home.php?cat=`$cat`&"}</DIV>
{/if}
{if 
$total_pages gt 2}
<
BR>
{ include 
file="customer/main/navigation.tpl" }
{/if}
<
BR>
{include 
file="customer/main/products.tpl" products=$products}
{/if}
{if 
$products eq "" and $tmp eq "0"}
{
$lng.txt_no_products_in_cat}
{/if}
{/
capture}
{include 
file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog 
extra
="width=100%"}
{if 
$products eq ""}
{if 
$f_products ne ""}
<
P>
{include 
file="customer/main/featured.tpl"}
{/if}
{/if}
{ include 
file="customer/main/navigation.tpl" 

I am using this on version 4.1.6 but its strange is the image location different in this version?

thanks for looking
__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1
Reply With Quote