Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

show number of products in a category

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-27-2012, 09:22 AM
 
webdesignhelper webdesignhelper is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 52
 

Default show number of products in a category

in the category listing in the left hand column how do i get it show the number of products in the category eg:

LMA Engine Fan Kits (90)
LMA Linkage Ball Joints (12)
LMA Hose & Hose Fittings (34)

is the (12) bit i am looking to add to the category list ?
__________________
WebDesignHelper.co.uk
Version 4.4.2 of x-cart
Reply With Quote
  #2  
Old 01-28-2012, 01:23 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: show number of products in a category

This code from subcategories_list.tpl might be enough to get you started:
PHP Code:
{if $config.Appearance.count_products eq "Y"}
              {if 
$subcat.product_count}
                ({
$subcat.product_count} {$lng.lbl_products})
              {elseif 
$subcat.subcategory_count}
                ({
$lng.lbl_N_categories|substitute:count:$subcat.subcategory_count})
              {/if}
            {/if} 
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:57 AM.

   

 
X-Cart forums © 2001-2020