Quote:
Originally Posted by Vetrivel
hi i m newbie to xcart. i like to add products count in side menu ie in categories.
Like this
Categories1 ( 23)
Categories2 ( 32)...
how to do this..and is it possible..   
i need some help from u people..
thnks in advance.. 
|
1. Back up file "skin1/customer/categories.tpl"
2.Replace the contents of the file, with this code.
PHP Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *}
{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
<font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category} ({$c.product_count})</a></font><br />
{/foreach}
{else} {foreach from=$subcategories item=c key=catid}
<font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems">{$c.category} ({$c.product_count})</a></font><br />
{/foreach}
{/if}
{/if}
{/capture}
{ include file="menu.tpl" images_src="categories.gif" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}