View Single Post
  #4  
Old 05-13-2008, 07:56 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Yurij is it possible to change subcategories?

Quote:
Originally Posted by merbay
Great! How to do this??

1. Backup file "skin1/customer/main/subcategories.tpl"

2. Change the code of this file on this (version 4.1.9)

PHP Code:
{* $Idsubcategories.tpl,v 1.55.2.1 2006/06/27 08:20:37 svowl Exp $ *}
{if 
$active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu ne "Y"}
<
/>
{include 
file="modules/Bestsellers/bestsellers.tpl"}
{/if}
<
/>
{if 
$active_modules.Special_Offers}
{include 
file="modules/Special_Offers/customer/category_offers_short_list.tpl"}
{/if}
{if (
$navigation_page eq "")||($navigation_page eq "1")}{$current_category.description}</>{/if}
{
capture name=dialog}
{
assign var="tmp" value="0"}
{foreach 
from=$subcategories item=c key=catid}
{if 
$c.category}{assign var="tmp" value="1"}{/if}
{/foreach}

{if 
$subcategories}
<
table cellspacing="5" width="100%">
<
tr>
<
td>
{foreach 
from=$subcategories item=subcat}

    <
a href="home.php?cat={ $subcat.categoryid }"><font class="ItemsList">{ $subcat.category|escape }</font></a>&nbsp;&nbsp;

{/foreach}
</
td>
</
tr>
</
table>
{/if}


{if 
$tmp and $products ne "" }
<
br clear="left" />
<
hr size="1" noshade="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}
<
hr size="1" width="100%" />
{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 ""}
<
/>
{include 
file="customer/main/featured.tpl"}
{/if}
{/if}
{ include 
file="customer/main/navigation.tpl" 
Reply With Quote